UNPKG

depcheck-cli

Version:

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.

108 lines (68 loc) โ€ข 2.34 kB
# 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](https://www.npmjs.com/package/depcheck-cli) \ [npm downloads](https://www.npmjs.com/package/depcheck-cli) \ [license](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: ```sh npm install -g depcheck-cli ``` Or use with `npx` (no install needed): ```sh npx depcheck-cli ``` --- ## โšก Usage Find unused dependencies: ```sh depcheck-cli unused ``` Check deprecated packages: ```sh depcheck-cli deprecated ``` --- ## ๐Ÿ“Š Example Output ```sh โœ” 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](https://github.com/masterdevsabith/depcheck-cli/issues). --- ## ๐Ÿ“œ License This project is licensed under the [MIT License](LICENSE). --- ## โญ Support If you find `depcheck-cli` useful, consider giving it a โญ on [GitHub](https://github.com/masterdevsabith/depcheck-cli) and sharing it with your team.