voidcosmos/npkill

List any node_modules 📦 dir in your system and how heavy they are. You can then select which ones you want to erase to free up space 🧹

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 42 minutes ago
Added to GitGenius on September 7th, 2026
Created on June 30th, 2019
Open Issues & Pull Requests: 27 (+0)
GitHub issues: Enabled
Number of forks: 255
Total Stargazers: 9,438 (+0)
Total Subscribers: 44 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 52.6 days
Mean response time: 186.7 days
90th percentile: 469.8 days
Tracked items: 24

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 4% of issues opened in the past year have been closed. Three people close 100% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 9
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 461 days
Stale 30+ days: 8
Stale 90+ days: 5

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (7)
  • bug (4)
  • feedback-needed (2)
  • good first issue (1)
  • help wanted (1)
  • improvement (1)
  • in progress (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

npkill is a command-line tool that scans your system for node_modules directories, displays their size, and lets you selectively delete them to reclaim disk space.

The tool solves the problem of node_modules folders consuming significant storage across multiple projects. It works by recursively searching the filesystem for node_modules directories starting from the current working directory, calculating their disk usage, and presenting them in an interactive terminal interface. Users navigate the list with arrow keys or vim-style navigation, mark directories for deletion with the Space or Del key, and execute removals. The tool performs searches at a low level to maintain speed despite potentially scanning many directories.

npkill suits developers who manage multiple Node.js projects and want a quick way to identify and remove unused or old node_modules folders without manual filesystem exploration. It is particularly useful for reclaiming space on machines with many abandoned or inactive projects. The tool includes a safety feature that warns users when a node_modules directory belongs to a system-installed application that may depend on it. Beyond basic deletion, the tool tracks the last modification time of files within each workspace, helping users identify which projects have been inactive. It also supports a search mode using regular expressions to filter results by path, and can output results in JSON format for programmatic use.

The project maintains active development with regular updates and accepts community contributions. The codebase is written in TypeScript and deliberately keeps dependencies minimal to reduce the tool's footprint. The tool is distributed via npm and can be run without installation using npx, making it accessible to developers who want to try it without commitment.