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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-30T20:59:44.000Z (about 2 years ago)
- Last Synced: 2024-12-04T19:15:32.907Z (8 days ago)
- Language: Go
- Homepage:
- Size: 50.8 KB
- Stars: 4,413
- Watchers: 39
- Forks: 130
- Open Issues: 25
-
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?
![huge](https://pbs.twimg.com/media/DEIV_1XWsAAlY29.jpg)
---
[![GoDoc](https://godoc.org/github.com/tj/node-prune?status.svg)](https://godoc.org/github.com/tj/node-prune)
![](https://img.shields.io/badge/license-MIT-blue.svg)
![](https://img.shields.io/badge/status-stable-green.svg)