npm 1.2.0Open source CLI
Dependency health scanner (DepGuard)
One command that scans a project for outdated, vulnerable, deprecated and stale packages across npm, pip, Cargo and Go.
Solo build · Open source, CLI, multi-ecosystem scanning
- TypeScript
- Node.js
- Commander.js
- tsup
- OSV.dev
- CLI
Problem
Dependency health is scattered: one tool for outdated versions, another for audits, and nothing at all for deprecated or abandoned packages, least of all across several languages.
What I built
A universal scanner CLI published as @lbharath/depguard. It detects the package manager from the manifest or lockfile, then reports outdated versions, known vulnerabilities, deprecated or yanked releases and stale packages, in a terminal, JSON or Markdown report.
Architecture
- Detect · package manager from manifest / lockfile
- Scan · per-ecosystem engine
- Normalise · one dependency model, semver diffing
- Enrich · OSV.dev, registry deprecation, publish dates
- Report · terminal, JSON or Markdown
Hard parts and decisions
- Covers npm, pnpm, yarn and bun, plus pip, Poetry, Pipenv, conda, Cargo and Go modules.
- Vulnerabilities come from OSV.dev for every ecosystem, with native audits layered on for JavaScript.
- --fail-on-high exits non-zero, so it can gate a CI pipeline.
- Monorepo workspace scanning (--workspace) for JavaScript projects.
- Known limits are documented in the README rather than hidden.
What it shows
Tooling that works across ecosystems, shipped as an installable package.