A CLI tool to find and delete heavy node_modules directories to free up disk space.
npkill is a command-line tool that helps developers find and delete heavy node_modules directories from their systems. It scans specified paths, displays the size of each node_modules folder, and provides an interactive interface to select and remove them, solving the problem of accumulated JavaScript dependencies consuming disk space.
JavaScript and Node.js developers who work on multiple projects and need to manage disk space by cleaning up dependency directories.
Developers choose npkill for its speed, ease of use, and interactive CLI that simplifies identifying and removing unnecessary node_modules without memorizing complex shell commands.
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 🧹
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses low-level search operations written in TypeScript for quick identification of node_modules, significantly reducing scan time compared to manual methods.
Keyboard-driven navigation with shortcuts for selection and deletion makes it user-friendly, eliminating the need for complex shell commands.
Offers --json and --json-stream flags for outputting results in machine-readable formats, enabling integration into custom cleanup scripts.
Highlights system-critical node_modules directories with warning indicators to prevent accidental deletion of essential dependencies.
Sorting results, especially by path, can slow down the terminal when handling many directories, as admitted in the known bugs section.
Size calculations are sometimes higher than actual usage, which could mislead users about disk space savings and what to delete.
CLI may become unresponsive while folders are being deleted, affecting user experience during large or slow cleanup operations.