14 releases (3 stable)
new 1.0.2 | Apr 16, 2025 |
---|---|
1.0.1 | Apr 14, 2025 |
0.5.7 | Apr 14, 2025 |
0.4.2 | Jan 23, 2025 |
#126 in Cargo plugins
1,022 downloads per month
61KB
746 lines
🛠️ Check Node Packages (cnp)
A utility tool written in Rust to check for unused node packages in your project. It helps you identify and clean up dependencies that are no longer needed.
✨ Features
- Scans files for dependency usage.
- Supports
.cnpignore
for excluding dependencies. - Interactive mode for reviewing deletions.
- Clear, tabular output with progress feedback.
📚 Usage
cnp # Scan and report unused dependencies
cnp --dry-run # Preview without changes
cnp --clean # Interactively remove unused dependencies
Configuration
.cnpignore
: List dependencies to exclude (one per line,#
for comments).
react-dom
eslint
🧑💻 Contributing
Feel free to open issues or pull requests to help improve the tool! Contributions are always welcome 🌟.
📜 License
This project is licensed under the MIT License - see the LICENSE file for details.
Dependencies
~9–18MB
~231K SLoC