Remove unnecessary files from node_modules (.md, .ts, ...)
Switch branches/tags
Nothing to show
Clone or download
oguzhaninan and tj added .mkd, changelog, .eslintrc.yml ..... (#54)
added .mkd, changelog, .eslintrc.yml, LICENSE.BSD, LICENSE-MIT
Latest commit ea363c1 Jul 4, 2018

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 source:

$ go get github.com/tj/node-prune/cmd/node-prune

From binary to ./bin/node-prune:

$ curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash

From binary to /usr/local/bin/node-prune:

$ curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin

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