depcheck-cli
v2.0.0
Published
CLI tool for Node.js projects to analyze dependencies: find unused packages, detect deprecated dependencies, and identify largest modules to reduce bundle size and improve performance.
Downloads
27
Maintainers
Keywords
Readme
depcheck-cli
A powerful Node.js CLI tool to analyze dependencies in your project.
Find unused packages and detect deprecated dependencies to reduce bundle size and keep your project healthy.
npm version
npm downloads
license
🚀 Features
- ✅ Detect unused dependencies in your project
- ✅ Identify deprecated packages from npm registry
- ✅ Fast, lightweight, and developer-friendly
- ✅ Works with JavaScript, TypeScript, React, Next.js, Node.js apps
📦 Installation
Install globally:
npm install -g depcheck-cliOr use with npx (no install needed):
npx depcheck-cli⚡ Usage
Find unused dependencies:
depcheck-cli unusedCheck deprecated packages:
depcheck-cli deprecated📊 Example Output
✔ Found 12 unused dependencies:
- lodash
- moment
- request
✔ Deprecated packages detected:
- request (deprecated, use node-fetch instead)
- left-pad (deprecated)🔑 Why Use depcheck-cli?
- 🛠️ Keep your project clean by removing unused packages
- 🚨 Avoid security risks from deprecated dependencies
- 📈 Improve project maintainability and health
📖 Related Keywords
unused dependencies · dependency checker · deprecated packages · npm audit alternative · optimize node_modules · nodejs cli tool · remove unused npm packages · dependency analyzer
🛠 Roadmap
- [ ] Add largest package size detection
- [ ] Interactive cleanup mode for removing unused deps
- [ ] JSON/HTML report output
- [ ] Integration with CI/CD pipelines
- [ ] Support for monorepos (Lerna, Nx, Turborepo)
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check issues.
📜 License
This project is licensed under the MIT License.
⭐ Support
If you find depcheck-cli useful, consider giving it a ⭐ on GitHub and sharing it with your team.
