Need help with node-prune?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

tj
4.0K Stars 113 Forks MIT License 87 Commits 21 Opened issues

Description

Remove unnecessary files from node_modules (.md, .ts, ...)

Services available

!
?

Need anything else?

Contributors list

# 67
JavaScr...
Node.js
lambda
tdd
50 commits
# 11,609
Node.js
sass-mi...
Sass
ESLint
5 commits
# 96,637
React
Shell
HTML
CSS
2 commits
# 11,686
TypeScr...
Rust
Visual ...
Deno
2 commits
# 367,942
Go
1 commit
# 29,387
atom-ed...
Koa
hugo
Express
1 commit
# 31,604
TypeScr...
React
CSS
image-z...
1 commit
# 158,325
PHP
Laravel
log-vie...
Shell
1 commit
# 6,996
Less
Electro...
system-...
optimiz...
1 commit
# 20,665
webos
React
sweetal...
TypeScr...
1 commit
# 18,375
Python
HTML
quantum...
compute...
1 commit
# 235,220
Java
Shell
cas
play-fr...
1 commit
# 8,645
Koa
npm
gzip
Less
1 commit
# 61,994
Vue.js
Terrafo...
elm
gRPC
1 commit
# 1,998
Bootstr...
nix
Homebre...
travis
1 commit
# 1,081
compass
github-...
gcm
apns
1 commit
# 364,213
Go
1 commit

What?

node-prune is a small tool to prune unnecessary files from ./node_modules, such as markdown, typescript source files, and so on. Primarily built for Up which lets you deploy serverless web applications in seconds.

Installation

From gobinaries.com:

$ curl -sf https://gobinaries.com/tj/node-prune | sh

From source:

$ go get github.com/tj/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"
  }

Why?

huge


GoDoc

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.