Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tj/node-prune
Remove unnecessary files from node_modules (.md, .ts, ...)
https://github.com/tj/node-prune
Last synced: about 12 hours ago
JSON representation
Remove unnecessary files from node_modules (.md, .ts, ...)
- Host: GitHub
- URL: https://github.com/tj/node-prune
- Owner: tj
- License: mit
- Created: 2017-11-19T01:11:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-30T20:59:44.000Z (about 2 years ago)
- Last Synced: 2025-02-13T06:06:19.615Z (8 days ago)
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 4,422
- Watchers: 39
- Forks: 131
- Open Issues: 24
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - tj/node-prune - Remove unnecessary files from node_modules (.md, .ts, ...) (Go)
- awesome-github-star - node-prune
- awesome-starred - tj/node-prune - Remove unnecessary files from node_modules (.md, .ts, ...) (others)
README
## 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](https://github.com/apex/up) which lets you deploy serverless web applications in seconds.
## Installation
From [gobinaries.com](https://gobinaries.com):
```sh
$ curl -sf https://gobinaries.com/tj/node-prune | sh
```From source:
```
$ go get github.com/tj/node-prune
```## Usage
In your app directory:
```
$ node-prunefiles total 27,330
files removed 3,990
size removed 13 MB
duration 200ms
```Somewhere else:
```
$ node-prune path/to/node_modulesfiles 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?

---
[](https://godoc.org/github.com/tj/node-prune)

