Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 25 days 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 (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2020-03-13T07:51:09.000Z (almost 5 years ago)
- Last Synced: 2024-05-14T03:23:35.033Z (7 months ago)
- Topics: node-modules, npm
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 50
- Watchers: 3
- 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`.
[![npm](https://img.shields.io/npm/v/node-prune.svg?style=flat-square)](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