Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.
/ node-prune Public archive

Easily pruning unneeded files from node_modules folder

License

Notifications You must be signed in to change notification settings

tuananh/node-prune

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-prune

Easily pruning unneeded files from node_modules.

npm

Original script written by gpittarelli and neophob.

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.

node-prune

Output

Before: 135M .
After: 112M .

License

MIT

About

Easily pruning unneeded files from node_modules folder

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages