depcheck.
find unused npm / pip / cargo deps without false positives.
ast-walks your codebase, cross-references against the lockfile, lists deps you actually never import. handles dynamic imports + optional peers correctly.
npm i -g @v0idd0/depcheck
no more false positives we walk the AST.
four jobs. all in your terminal. no api call, no internet round-trip — just a plain tool that does what it says.
scan a node project
missing: typescript
3 dynamic imports tracked
scan a python project
used by setup.py: wheel
machine-readable
"chalk",
"moment"
]
explain an import
src/Header.tsx:1
(2 import sites)
three ways. all painless.
npm
$ npm i -g @v0idd0/depcheck
node 14+ on linux / macos / windows. updates with npm update -g.
github releases
$ curl -L github.com/voidd0/depcheck/releases/latest
single static binary. zero runtime needed. all releases →
git clone
$ git clone github.com/voidd0/depcheck
read the source, send a pr, fork it. mit licence, no cla. repo →
every other unused-dep tool we tried claimed chalk was unused — even though it was lazy-loaded inside an if-branch. depcheck walks the AST properly, so dynamic imports don’t fool it.
no telemetry. no signup. no false positives that waste your afternoon. mit forever — the source is public and the npm package is yours to fork.
power user?
use this daily? tools.voiddo Pro · $9 one-time
supports 66 free tools · Pro license via Paddle · one flat price, no subscription