wipenv
v1.0.0
Published
Clean up node_modules and .venv directories to free up disk space - A fast CLI tool written in Go
Downloads
91
Maintainers
Readme
██╗ ██╗██╗██████╗ ███████╗███╗ ██╗██╗ ██╗
██║ ██║██║██╔══██╗██╔════╝████╗ ██║██║ ██║
██║ █╗ ██║██║██████╔╝█████╗ ██╔██╗ ██║██║ ██║
██║███╗██║██║██╔═══╝ ██╔══╝ ██║╚██╗██║╚██╗ ██╔╝
╚███╔███╔╝██║██║ ███████╗██║ ╚████║ ╚████╔╝
╚══╝╚══╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═══╝ ╚═══╝A fast CLI tool to find and delete node_modules and .venv directories to free up disk space. Written in Go, distributed via npm/bun.
Similar to npkill but faster and also cleans Python virtual environments.
Features
- Fast - Written in Go for maximum performance
- node_modules - Find and delete npm package directories
- .venv - Find and delete Python virtual environments
- Real-time stats - See total disk space used and freed
- Keyboard navigation - Easy navigation with arrow keys
- Beautiful TUI - Interactive terminal user interface
Installation
npm
npm install -g wipenvbun
bun install -g wipenvFrom source (requires Go 1.21+)
git clone https://github.com/raghav3615/wipenv.git
cd wipenv
go build -o wipenv ./cmd/wipenvUsage
Simply run wipenv or WIPENV in your terminal:
wipenvOr specify a directory to scan:
wipenv ~/projects
wipenv /path/to/directoryOptions
-h, --help Show help message
-v, --version Show version informationControls
| Key | Action | |-----|--------| | ↑/k | Move cursor up | | ↓/j | Move cursor down | | Space | Delete selected folder | | Enter | Confirm selection (menu) | | Esc | Go back to menu | | q | Quit |
How it works
- Select what to clean - Choose between node_modules, .venv, or both
- Scan - WIPENV recursively scans the selected directory
- Review - See all found folders with their sizes
- Delete - Press Space to delete unwanted folders
- Track - Watch the freed space counter go up!
Screenshots
Menu Screen
██╗ ██╗██╗██████╗ ███████╗███╗ ██╗██╗ ██╗
██║ ██║██║██╔══██╗██╔════╝████╗ ██║██║ ██║
██║ █╗ ██║██║██████╔╝█████╗ ██╔██╗ ██║██║ ██║
██║███╗██║██║██╔═══╝ ██╔══╝ ██║╚██╗██║╚██╗ ██╔╝
╚███╔███╔╝██║██║ ███████╗██║ ╚████║ ╚████╔╝
╚══╝╚══╝ ╚═╝╚═╝ ╚══════╝╚═╝ ╚═══╝ ╚═══╝
Select what to clean:
▶ node_modules (npm packages)
.venv (Python virtual environments)
Both (node_modules + .venv)
↑/↓: Navigate • Enter: Select • q: QuitScan Screen
✓ Scan complete │ Total: 5.23 GB │ Free: 1.02 GB │ Folders: 15
▶ [npm] 512.34 MB ~/projects/app1/node_modules
[npm] 256.12 MB ~/projects/app2/node_modules
[venv] 128.45 MB ~/projects/ml-project/.venv ✓ DELETED
[npm] 891.23 MB ~/projects/website/node_modules
↑/↓: Navigate • Space: Delete • Esc: Back • q: QuitSession Summary
When you quit with q, WIPENV shows a summary of space freed:
Session complete! Free space: 1.02 GBWhy "WIPENV"?
"Wipenv" combines "wipe" and "env" - it wipes your environment folders (node_modules and .venv) to free up disk space.
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
