Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ToDesktop/nm-prune
Prune unneeded files (.md, .td, etc..) from node_modules folder. Super handy for Electron and AWS Lambda.
https://github.com/ToDesktop/nm-prune
Last synced: about 11 hours ago
JSON representation
Prune unneeded files (.md, .td, etc..) from node_modules folder. Super handy for Electron and AWS Lambda.
- Host: GitHub
- URL: https://github.com/ToDesktop/nm-prune
- Owner: ToDesktop
- License: mit
- Created: 2017-11-19T17:13:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-20T13:47:58.000Z (about 3 years ago)
- Last Synced: 2024-07-29T05:23:06.942Z (4 months ago)
- Language: JavaScript
- Size: 164 KB
- Stars: 70
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# nm-prune [![Build Status](https://travis-ci.org/pingyhq/nm-prune.svg?branch=master)](https://travis-ci.org/pingyhq/nm-prune)
> 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](./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](https://github.com/davej)