clean-pack
v0.0.1
Published
A beautiful CLI tool to clean up node_modules directories with style
Maintainers
Readme
clean-pack
A beautiful CLI tool to clean up node_modules directories in your projects with style! 🧹✨
Features
- 🔍 Recursively finds all node_modules directories in your project
- 📊 Shows size and last modified date for each directory
- ⌨️ Interactive keyboard navigation and selection
- 🔎 Real-time search functionality
- 📜 Scrollable list for large projects
- 🎨 Beautiful CLI interface using Ink
- 💾 Shows total space saved after cleanup
- ✅ Safe deletion with confirmation
Installation
# Using npm
npm install -g clean-pack
# Using yarn
yarn global add clean-pack
# Using pnpm
pnpm add -g clean-packUsage
Run in the current directory:
clean-packRun in a specific directory:
clean-pack ./path/to/projectKeyboard Controls
↑/↓- Navigate through packagesSpace- Select/deselect packagea- Select/deselect all packages/- Enter search modeEnter- Confirm deletionEsc- Exit search mode
Why clean-pack?
- Space Management: Easily identify and remove unused node_modules directories
- Project Cleanup: Perfect for cleaning up old projects and freeing disk space
- Visual Feedback: See exactly how much space you're saving
- Safe Operation: Confirmation required before deletion
- User-Friendly: Beautiful interface with intuitive controls
Development
Clone the repository
git clone https://github.com/brunokiafuka/clean-pack.git cd clean-packInstall dependencies:
pnpm installBuild the project:
pnpm buildLink the package locally:
pnpm link --global
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
License
MIT © Bruno Kiafuka
