dependency-smell-reporter
Version:
A CLI tool that detects unused, outdated, and missing dependencies with reporting.
87 lines (52 loc) โข 1.69 kB
Markdown
# ๐ง Dependency Smell Reporter
A minimal, effective CLI tool to analyze your project dependencies and catch common "dependency smells":
- ๐ซ Unused dependencies
- โ Missing packages
- ๐ Outdated versions
- ๐ฆ Node modules size
- ๐ Dependency overuse warning
Ideal for developers who want to keep their codebase clean and production-ready.
## ๐ฆ Installation
Install globally:
npm install -g dependency-smell-reporter
Use with npx (no global install):
npx dependency-smell-reporter
๐ Usage ->
Run it inside any Node.js project:
dsr
Or:
npx dependency-smell-reporter
๐งช Example Output
๐ Running Dependency Smell Reporter...
๐ Analyzing path: /your/project/path
โ ๏ธ Unused Dependencies
- axios
- chalk
๐ Outdated Dependencies
- lodash
๐ฆ Node_modules size: 41.84 MB
๐ Total Dependencies in use: 12
๐ Summary:
- 2 unused dependencies
- 1 outdated
- 0 missing
โ
Dependency Smell Check Complete!
๐ Log saved to dependency-smell-log.json
๐ง Features ->
Detects unused dependencies using depcheck
Checks for outdated versions using npm-check-updates
Reports missing packages
Calculates node_modules size
Warns if dependency count or size is high
Automatically writes a dependency-smell-log.json file
๐ค Why Use This?
โ
Keep your project clean
โ
Reduce bloat and build size
โ
Improve performance and maintainability
โ
Impress reviewers during code audits and interviews
๐จโ๐ป Author
Mihir
Built with Node.js, powered by open-source tools like depcheck, npm-check-updates, and fast-folder-size.
๐ License
MIT