UNPKG

dependency-smell-reporter

Version:

A CLI tool that detects unused, outdated, and missing dependencies with reporting.

87 lines (52 loc) โ€ข 1.69 kB
# ๐Ÿง  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