Scan your hard drive, locate heavy
node_modulesfolders, and reclaim gigabytes of disk space.
You've spun up dozens of experimental projects. Each npm install brought in hundreds of megabytes you haven't touched in months. blackhole makes cleaning your disk actually fun.
- ✨ Zero configuration — just aim it at a folder
- 🚀 Blazing fast recursive scan powered by
fast-glob - 📊 Calculates exact disk usage per folder
- 🛡️ Interactive multi-select — you choose exactly what gets deleted
- 🔥 Permanently wipes gigabytes in seconds
npx @dinakars777/blackhole ~/ProjectsOr install globally:
npm install -g @dinakars777/blackhole
blackhole ~/Projects
blackhole .- Recursively scans the target directory for
node_modulesfolders - Calculates the exact size of each folder
- Presents a sorted interactive checklist (largest first)
- Shows the total space you'll reclaim before doing anything
- Deletes only what you confirm
| Package | Purpose |
|---|---|
fast-glob |
High-performance recursive file scanning |
@clack/prompts |
Beautiful interactive CLI UI |
| TypeScript | Type-safe implementation |
git clone https://github.com/dinakars777/blackhole.git
cd blackhole
npm install
npm run dev ~/TestDirectoryMIT