MCPcopy Index your code
hub / github.com/tj/node-prune

github.com/tj/node-prune @v1.2.0

repository ↗ · DeepWiki ↗ · release v1.2.0 ↗ · + Follow
23 symbols 46 edges 2 files 17 documented · 74% updated 3y agov1.0.1 · 2017-11-25★ 4,42821 open issues
README

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

Extension points exported contracts — how you extend this code

Option (FuncType)
Option function.
internal/prune/prune.go

Core symbols most depended-on inside this repo

toMap
called by 6
internal/prune/prune.go
output
called by 4
main.go
String
called by 1
main.go
New
called by 1
internal/prune/prune.go
WithDir
called by 1
internal/prune/prune.go
WithGlobs
called by 1
internal/prune/prune.go
WithExceptions
called by 1
internal/prune/prune.go
Prune
called by 1
internal/prune/prune.go

Shape

Function 12
Method 7
Struct 2
FuncType 1
TypeAlias 1

Languages

Go100%

Modules by API surface

internal/prune/prune.go17 symbols
main.go6 symbols

Dependencies from manifests, versioned

github.com/apex/logv1.1.1 · 1×

For agents

$ claude mcp add node-prune \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact