Easily find and remove old and heavy node_modules folders .
npkill is a powerful open-source command-line interface (CLI) tool designed to scan your system and delete heavy target directories—such as node_modules, build artifacts, and cache folders—to quickly reclaim gigabytes of disk space.
The main features and capabilities of npkill include:
Instant Terminal Scanning & Execution: Scans your file system for heavy project folders directly from the terminal without requiring manual directory hunting by running npx npkill.
Interactive Terminal Navigation & Bulk Deletion: Provides an interactive CLI interface where you can browse found directories using arrow keys (↑ / ↓), inspect details (→), remove single folders (Del), or select multiple directories (t) for bulk deletion.
Multi-Language & Multi-Framework Profiles: Comes with built-in profiles for diverse languages and frameworks—including Node.js, Python, Rust, PHP, Java, Unity, Godot, and Dart—to find targets beyond node_modules (such as .next or .angular folders).
Custom Configuration: Supports tailored scanning rules and command options using a .npkillrc configuration file.
Open Source & Ecosystem: Maintained as an open-source project by the voidcosmos team, distributed via npm, and hosted on GitHub.