Easily find and remove old and heavy node_modules, artifacts, caches and dev leftovers
open sourceMITself-hostablefree
npkill scans your system for heavy development directories, starting with node_modules and extended through profiles to Python, Rust, game engines and more. Its TUI shows what is taking space, when you last worked in each project, and lets you delete folders individually or in multi-select mode. It warns about node_modules that installed apps need, and has JSON output and an API.
Problems it solves
- dozens of old projects each have a 500MB node_modules folder
- find every node_modules on my machine and delete the ones I don't need
- which old projects haven't I touched in months, and how much space do they use
- free up gigabytes before backing up my code folder
- clean Python venvs and Rust target folders too, not only Node
- run one npx command to clean up without installing anything
- pick several dependency folders and delete them at once
- get a JSON list of heavy dev folders for a script
Features
- profiles for Node, Python, Rust and more
- last-modified workspace info
- multi-select
- search
- .npkillrc
- JSON output
- API
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
Alternatives
The same job
These do what npkill does.
- Mole Open-source Mac and PC cleaner. Keep your machine clean, light, and running like new.
- Kondo Cleans dependencies and build artifacts from your projects.
- cargo-sweep A cargo subcommand for cleaning up unused build files generated by Cargo
- cargo-cache manage cargo cache (${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively
- Poo Find and safely free the disk space your dev work eats
