Skip to content

About

Cleanup node_modules

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-prune is a small tool to prune unnecessary files from ./node_modules, such as markdown, source files, and so on.

Installation

From binary:

curl -sSfL https://github.com/BrightcovePS/node-prune/releases/latest/download/install | sh

From source:

$ go get github.com/BrightcovePS/node-prune

Usage

In your app directory:

$ node-prune

files total 27,330
files removed 3,990
size removed 13 MB
   duration 200ms

Somewhere else:

$ node-prune path/to/node_modules

files total 27,330
files removed 3,990
size removed 13 MB
   duration 200ms

Or add to the package.json scripts field

  "scripts": {
    "postinstall": "node-prune"
  }

About

Cleanup node_modules

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages

⌂ 换网址