Skip to content

Easily pruning unneeded files from node_modules folder

License

Notifications You must be signed in to change notification settings

Ciptex/node-prune

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-prune

Easily pruning unnecessary files from node_modules.

npm

Original script written by gpittarelli and neophob.

Use cases:

  • Optimize package sizes for AWS lambda functions/layers

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

node-prune

In the directory where you want to perform the prune.

node-prune [path/to/prune]

This path is relative to your current working directory.

Output

Before: 135M (3653 files)
After: 112M (3102 files)

License

MIT

About

Easily pruning unneeded files from node_modules folder

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 97.0%
  • Dockerfile 3.0%