Skip to content

Remove unnecessary files from node_modules (.md, .ts, ...)

License

Notifications You must be signed in to change notification settings

skrashevich/node-prune

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/skrashevich/node-prune | sh

From source:

$ go install github.com/skrashevich/node-prune@latest

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

About

Remove unnecessary files from node_modules (.md, .ts, ...)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%