node-prune

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

  • 所有者: tj/node-prune
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者tj/node-prune
主编程语言Go
编程语言Go (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2017-11-19 01:11:42
推送于2022-11-30 20:59:44
最后一次提交2020-05-12 10:34:09
发布数4
最新版本名称v1.2.0 (发布于 2020-05-12 10:34:09)
第一版名称v1.0.0 (发布于 )
用户参与
星数4.4k
关注者数37
派生数132
提交数87
已启用问题?
问题数41
打开的问题数20
拉请求数23
打开的拉请求数5
关闭的拉请求数8
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?