npkill
📈 Star trend+55 / 19d
Summary
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 🧹
🤖 AI Deep Analysis
npkill is an essential tool for Node.js developers to quickly reclaim disk space by safely removing unwanted node_modules directories, with an intuitive interactive interface.
✅ Pros
- Interactive CLI with clear visualization of disk usage
- Safe deletion with user confirmation
- Cross-platform support (Windows, macOS, Linux)
- Lightweight and easy to install via npm
- Actively maintained with good community support
⚠️ Cons
- Limited to node_modules directories only
- No GUI or web interface
- Requires Node.js to be installed
- May be slow on very large file systems
- No scheduling or automation features
🎯 Use cases
- Freeing up disk space by removing unused node_modules
- Cleaning up after multiple projects with heavy dependencies
- Maintaining development environments with limited storage
- Auditing disk usage across projects
- Pre-deployment cleanup to reduce artifact size
⚖️ Comparison
Compared to similar tools like 'npx npkill' or 'find . -name node_modules -type d -prune -exec rm -rf {} +', npkill offers an interactive interface and safety checks. It is more user-friendly than manual commands but less flexible than custom scripts. Unlike 'du' or 'ncdu', it specifically targets node_modules, making it more focused for Node.js developers.