#node #cli #package-manager

app cnp

A utility tool written in Rust to check unused node packages

14 releases (3 stable)

1.0.2 Apr 16, 2025
1.0.1 Apr 14, 2025
0.5.7 Apr 14, 2025
0.4.2 Jan 23, 2025

#78 in Cargo plugins

Download history 168/week @ 2025-01-17 157/week @ 2025-01-24 34/week @ 2025-01-31 8/week @ 2025-02-07 12/week @ 2025-02-14 19/week @ 2025-02-21 17/week @ 2025-02-28 1/week @ 2025-03-14 1141/week @ 2025-04-11 218/week @ 2025-04-18

1,359 downloads per month

MIT license

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
~232K SLoC