node-prune

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

  • Owner: tj/node-prune
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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

From source:

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

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

Main metrics

Overview
Name With Ownertj/node-prune
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2017-11-19 01:11:42
Pushed At2022-11-30 20:59:44
Last Commit At2020-05-12 10:34:09
Release Count4
Last Release Namev1.2.0 (Posted on 2020-05-12 10:34:09)
First Release Namev1.0.0 (Posted on )
用户参与
Stargazers Count4.4k
Watchers Count38
Fork Count132
Commits Count87
Has Issues Enabled
Issues Count40
Issue Open Count19
Pull Requests Count23
Pull Requests Open Count5
Pull Requests Close Count8
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private