https://github.com/tuananh/node-prune
Easily pruning unneeded files from node_modules folder
https://github.com/tuananh/node-prune
node-modules npm
Last synced: 8 months ago
JSON representation
Easily pruning unneeded files from node_modules folder
- Host: GitHub
- URL: https://github.com/tuananh/node-prune
- Owner: tuananh
- License: mit
- Archived: true
- Created: 2017-11-19T07:25:56.000Z (over 8 years ago)
- Default Branch: develop
- Last Pushed: 2020-03-13T07:51:09.000Z (about 6 years ago)
- Last Synced: 2025-06-29T09:22:58.733Z (9 months ago)
- Topics: node-modules, npm
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 50
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-prune
> Easily pruning unneeded files from `node_modules`.
[](https://npm.im/node-prune)
Original script written by [gpittarelli](https://gist.github.com/gpittarelli/64d1e9b7c1a4af762ec467b1c7571dc2) and [neophob](https://gist.github.com/neophob/0c8cfdd460b8332002e7ba74aa1e9ffd).
## Use cases:
- Optmize for sizes for aws lambda functions
- You haven't heard of `yarn` and `yarn autoclean`
## 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
`cd` to project root and issue the following command.
``` sh
node-prune
```
Output
```
Before: 135M .
After: 112M .
```
## License
MIT