A fast, interactive terminal UI tool to find and delete node_modules folders recursively from your directories, helping you free up disk space easily.
- Interactive TUI: Navigate and select folders using standard CLI bindings (Vim keys supported).
- Fast Scanning: Quickly calculates the total size of your
node_modulesdirectories. - Tree View: Visualize nested directory structures clearly.
- Bulk Delete: Select and delete multiple
node_modulesdirectories in one go.
If you have Go installed (1.20+), you can easily install the tool directly using go install. This is the easiest way to get the latest version.
go install github.com/vewake/nmcleaner@latestMake sure your $(go env GOPATH)/bin directory is in your system's $PATH.
- Go to the Releases page.
- Download the archive corresponding to your OS and CPU architecture.
- Extract the archive.
macOS / Linux:
chmod +x nmcleaner
./nmcleanerWindows (PowerShell):
.\nmcleaner.exeSimply run the command in the directory you want to clean. If installed via go install:
nmcleaner(or ./nmcleaner if you downloaded the binary manually)
- ↑ ↓ or k / j: Move cursor
- Space: Select/Deselect current item
- a: Select/Deselect all items
- Tab or e: Expand/Collapse tree structure
- Enter: Delete selected items permanently
- q or Ctrl+C: Quit application
To build the project manually from the source code:
git clone https://github.com/vewake/nmcleaner.git
cd nmcleaner
go build -o nmcleaner .
./nmcleaner