1.2.0 โข Published 6 months ago
@happyvibess/node-cleaner v1.2.0
๐งน node-cleaner
๐ A beautiful CLI tool to find and clean node_modules directories and free up disk space
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ ๐งน Node Cleaner v1.2.0 โ
โ Free up space by removing node_modulesโ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โจ Scanning for node_modules directories...
โ Found 3 node_modules directories
๐ Space usage summary:
โโ /project1/node_modules (156.2 MB)
โโ /project2/node_modules (89.4 MB)
โโ /project3/node_modules (124.8 MB)
Total space used: 370.4 MB
? Select directories to clean: (Press <space> to select)
โฏ โป /project1/node_modules
โป /project2/node_modules
โป /project3/node_modulesโจ Features
- ๐ Smart scanning for node_modules directories
- ๐ Interactive selection with directory sizes
- ๐ฏ Customizable scan depth
- ๐ Lightning-fast cleaning
- ๐ Detailed space usage statistics
- โก๏ธ Progress bars and beautiful UI
- โ Safe deletion with confirmation
๐ Installation
# Install globally (recommended)
npm install -g @happyvibess/node-cleaner
# Or use with npx
npx @happyvibess/node-cleaner๐ป Usage
# Basic usage (scans current directory)
node-cleaner
# Scan specific directory
node-cleaner -p /path/to/directory
# Set maximum scan depth (default: 4)
node-cleaner -d 5
# Skip confirmation (use with caution)
node-cleaner -f๐ Options
| Option | Description | Default |
|---|---|---|
-p, --path <path> | Directory to scan | Current directory |
-d, --depth <number> | Maximum depth to scan | 4 |
-f, --force | Skip confirmation | false |
-v, --version | Show version | - |
-h, --help | Show help | - |
๐ Example Output
Cleaning |โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 100% || 3/3 directories
โจ Cleanup complete!
3 directories cleaned
Your project is now lighter and faster
Total space freed: 370.4 MB๐ค Contributing
Contributions, issues and feature requests are welcome!
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
โ Support
If you find this tool helpful, you can support its development by buying me a coffee!
๐ License
This project is MIT licensed.
