Skip to content
Remove unnecessary files from node_modules (.md, .ts, ...)
Branch: master
Clone or download
Pull request Compare This branch is 9 commits ahead, 3 commits behind tj:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/node-prune
.gitignore
LICENSE
Readme.md
goreleaser.yml
install.sh
prune.go

Readme.md

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 binary to ./bin/node-prune:

$ curl -sfL https://raw.githubusercontent.com/kira/node-prune/master/install.sh | bash -s -- -d v1.0.1

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

You can’t perform that action at this time.