Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 893 Bytes

File metadata and controls

48 lines (31 loc) · 893 Bytes

node-prune

Easily pruning unnecessary files from node_modules.

npm

Original script written by gpittarelli and neophob.

Use cases:

  • Optimize package sizes for AWS lambda functions/layers

Docker

cd to project root and issue the following command.

docker run --rm -v ${PWD}:/app hochzehn/node-prune

Installation

npm install -g node-prune

Usage

node-prune

In the directory where you want to perform the prune.

node-prune [path/to/prune]

This path is relative to your current working directory.

Output

Before: 135M (3653 files)
After: 112M (3102 files)

License

MIT