desunu (unused backward) is a blazing-fast, Rust-based CLI tool designed to help you locate unused dependencies in your projects. Whether you're working with package.json
for Node.js, Cargo.toml
for Rust, or eventually other project types, desunu scans your files, analyzes your dependencies, and provides actionable insights.
Our vision is simple: desunu should be the first tool you think of when you need to find unused things.
- Comprehensive Dependency Scanning: Detect every unused dependency in your project, starting with Node.js (
package.json
) and Rust (Cargo.toml
). - Blazing Performance: Analyze projects with 250+ packages and 2300+ files in less than 5 seconds.
- File-Based Analysis: Reads and scans your files directly without relying on external services like LSP.
- Future-Ready: Designed for extensibility, with plans to support additional ecosystems like Python, Go, and Ruby.
- Keep your projects clean and lean by identifying unnecessary dependencies.
- Avoid performance issues and vulnerabilities caused by unused libraries.
- Focus on simplicity and speed: no complex setups, just results.
- Rust installed on your system.
-
Clone the repository:
git clone https://github.com/yourusername/desunu.git
-
Navigate to the project directory:
cd desunu
-
Build the project:
cargo build --release
-
Run the executable from the
target/release/
folder to start using desunu.
To scan your project directory and detect unused dependencies, run:
desunu all
desunu will:
- Detect in which project type you are (Node, Rust, Ruby, etc...).
- Analyze the files in your project directory (and subdirectories).
- Cross-reference your dependency file (package.json, Cargo.toml) with the actual imports or usage in your code.
- Output a clear list of unused dependencies.
We welcome contributions! If you'd like to improve spedesunu or add support for additional project types, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name
). - Make your changes and commit them (
git commit -am 'Add feature'
). - Push to your forked repository (
git push origin feature-name
). - Open a pull request with a clear description of your changes.
- Publish the CLI on
brew
,apt
. - Add support for Python, Go, Ruby, and more project types.
- Customizable configurations for ignoring specific files or dependencies.
- Advanced reporting formats (JSON, CSV, etc.).
- Integration into CI/CD pipelines for automated checks.
desunu is optimized for speed. It can scan large projects with thousands of files and hundreds of dependencies in just a few seconds, making it an ideal tool for both developers and CI environments.
desunu is licensed under the MIT License.
Built with ❤️ and Rust.