# tj/node-prune

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

Repository: https://github.com/tj/node-prune
Canonical: https://ross.abutalabs.com/products/node-prune
Language: Go
License: MIT
License Family: permissive
Last push: 2022-11-30T20:59:44+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3210, "days_push": 1372, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4425, forks 132 (observed 2026-08-28T04:08:48.875998+00:00)

## What it is
A small Go CLI tool that removes unnecessary files (markdown, TypeScript sources, etc.) from node_modules directories to reduce their size. It can be run manually or wired into npm postinstall scripts.

## Use cases
- shrink node_modules before deploying serverless functions
- reduce size of docker images containing node apps
- clean up unnecessary files after npm install
- speed up packaging of node applications

## When to choose
- you deploy node apps where node_modules size matters
- you want a fast, zero-config cleanup tool

## When to avoid
- you need actively maintained tooling with recent updates
- you use package managers that already prune extraneous files

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: developer-tools, cli, compression, file-system
- domain: developer-tools, backend
- platform: cli, windows, go
- tags: node-modules, npm, cleanup, deployment-optimization, command-line, linux, macos

## Member repositories
- tj/node-prune (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:48.875998+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:20:57.676876+00:00, confidence not recorded.
  - readme: https://github.com/tj/node-prune (fetched 2026-08-28T04:08:48.875998+00:00, sha f91390847fd1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
