An npkill alternative with undo

npkill is a free, MIT-licensed terminal tool for deleting node_modules and other build folders. It is good at that. Here is when something else fits better.

What npkill does today

  • Run it without installing:
     Terminal
    npx npkill --dry-run    # simulate first, deletes nothing
  • The default "node" profile always matches node_modules and .angular, and folders like .next, .nuxt, .svelte-kit, .turbo or coverage only when they sit next to the right project file.
  • Profiles for Python, Rust and game engines; --older-than; regex search; multi-select; JSON output and a Node.js API.
  • It shows when each project was last worked on, and hides folders it considers sensitive unless you pass --include-sensitive.
  • Version 1.0.0 on npm.

Pressing delete in npkill deletes the folder (not reversible from npkill). That is usually fine: npm install brings node_modules back.

Side by side

Junk Raccoonnpkill
InterfaceDesktop app (Mac, Windows)Terminal
Price, licenceFreeFree, MIT
Dry runEvery clean is a preview first--dry-run
UndoYes, one click from the holding folderNo
Skips repos with uncommitted changesYes (git guard)No
Also Xcode, Docker, caches, DownloadsYesNo, build folders only
ScriptableNoYes (JSON, API)

Choose npkill if

you live in the terminal, want to script it, or only care about build folders.

Choose Junk Raccoon if

you want one scan for build output and the rest of the disk, a way back after deleting, and protection for projects with uncommitted work. Junk Raccoon is our app, so weigh this page with that in mind.

Sources

Checked on 2026-11-22. Prices and versions change; check the vendor's site before buying.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac