โšก ZapDir

Blazing-fast terminal cleanup tool for heavy build artifacts
npm version npm downloads GitHub stars MIT
npm install -g zapdir
zapdir

ZapDir scans your projects for node_modules, .next, dist, build, and other heavy junk folders โ€” then lets you nuke them from orbit with a gorgeous interactive terminal UI.

View on GitHub View on npm

Features

โšก Blazing Fast

Async parallel scanner finds junk in seconds

๐ŸŽจ Beautiful UI

Powered by @clack/prompts with spinners & colored outputs

๐Ÿ” 13 Patterns

node_modules, .next, dist, build, .cache, .turbo, and more

๐Ÿ›ก๏ธ Safe

Dry-run mode + confirmation โ€” never delete by accident

Usage

# Interactive mode
zapdir
# Dry run (safe preview)
zapdir --dry-run
# Scan specific directory
zapdir ~/Projects

Why ZapDir?

Build artifacts accumulate fast. A single node_modules folder can be 200MB+. Add .next (1GB+), dist, .cache, and build folders, and you can reclaim gigabytes of disk space with a single command.

Unlike wipe-modules or npkill, ZapDir handles 13 different patterns out of the box, has a beautiful interactive TUI with color-coded size bars, and is safe with dry-run mode.

โญ Star on GitHub ๐Ÿ“ฆ Install from npm