Remove unnecessary files from node_modules (.md, .ts, ...)
Go
4,421
86 commits
updated Nov 30, 2022
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.
From gobinaries.com:
$ curl -sf https://gobinaries.com/tj/node-prune | sh
From source:
$ go get github.com/tj/node-prune
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"
}

Overall
Maintained
Code review
Go module
Latest release
Releases this year
(top 24 of 46)
5,087 followers · starred Nov 2017
8,907 followers · starred Nov 2017
1,080 followers · starred Nov 2017
575 followers · starred Feb 2022
Remove unnecessary files from node_modules (.md, .ts, ...)
Go
4,421
86 commits
updated Nov 30, 2022
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.
From gobinaries.com:
$ curl -sf https://gobinaries.com/tj/node-prune | sh
From source:
$ go get github.com/tj/node-prune
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"
}

Overall
Maintained
Code review
Go module
Latest release
Releases this year
(top 24 of 46)
5,087 followers · starred Nov 2017
8,907 followers · starred Nov 2017
1,080 followers · starred Nov 2017
575 followers · starred Feb 2022