tool · dev / cleanup

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
github → npm mit · free forever
depcheck icon
what it does

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

$ depcheck
unused: chalk, moment
missing: typescript
3 dynamic imports tracked

scan a python project

$ depcheck --lang py
unused: requests, six
used by setup.py: wheel

machine-readable

$ depcheck --json | jq .unused
[
"chalk",
"moment"
]

explain an import

$ depcheck --explain react
src/App.tsx:1
src/Header.tsx:1
(2 import sites)
install

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 →

why we built it

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.

star on github → depcheck vs npm audit → all tools

power user?

use this daily? tools.voiddo Pro · $9 one-time

supports 66 free tools · Pro license via Paddle · one flat price, no subscription