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
Markdown
# 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.