nm-prune

5.0.0 • Public • Published

nm-prune Build Status

Prune unneeded files (.md, .td, etc..) from node_modules folder. Super handy for Electron and AWS Lambda.

$ npm install --global nm-prune

Customizing files and folders to be pruned

To see the files/folders that nm-prune will delete then have a look at default-prune.json.

To provide your own prune list then simply create a prune.json in your package's root directory (alongside package.json) and nm-prune will use that instead.

Skip confirmation

If you want nm-prune to run without asking for confirmation then you can run nm-prune --force.

Discard license files

By default nm-prune v4+ does not discard license files because that would violate the terms of most licenses. If you wish to prune them anyway then you can run the command nm-prune --prune-license.

License

MIT © DaveJ

Package Sidebar

Install

npm i nm-prune

Weekly Downloads

598

Version

5.0.0

License

MIT

Unpacked Size

7.98 kB

Total Files

6

Last publish

Collaborators

  • davej