Find and clean up node_modules directories to free disk space.
# With Bun
bun install -g oh-my-node-modules
# With npm
npm install -g oh-my-node-modulesonm . # Start in current directory
onm ~/projects # Scan specific directoryKeyboard shortcuts:
↑/↓- NavigateSpace- Toggle selectiond- Delete selecteda- Select alln- Deselect alli- Invert selections- Change sortf- Filterq- Quit?- Help
# Quick scan report
onm --scan .
# JSON output
onm --scan --json .
# Auto-delete large node_modules
onm --auto --min-size 500mb --yes .
# Preview what would be deleted
onm --auto --min-size 1gb --dry-run .- Interactive terminal UI
- Color-coded sizes (red >1GB, yellow >500MB)
- Multi-select with keyboard shortcuts
- Safe deletion with dry-run mode
- Filter by project name or path
- Shows last modified date
Requires Bun.
bun install
bun run build
bun test
bun run dev # Watch modeThe built output works with both Bun and Node.js.
https://github.com/Lukasdias/oh-my-node-modules
See AGENTS.md for codebase documentation.
MIT