349
GitHub - tj/node-prune: Remove unnecessary files from node_modules (.md, .ts, et...
source link: https://github.com/tj/node-prune
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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"
}
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK