Skip to main content

ts-prune vs Rev-dep

ts-prune finds unused TypeScript exports. rev-dep does the same with unusedExportsDetection and adds the rest of a dependency-hygiene suite - and unlike ts-prune, it's actively developed.

At a glance​

ts-pruneRev-dep
Primary focusunused exportsdependency hygiene + architecture
RuntimeNodeGo - single parallel pass (faster)
Unused exportsyesyes
Autofix (remove export)noyes (config run --fix)
Orphan files / dependencies / cyclesnoyes
Architecture rulesnoyes
Maintainedmaintenance mode (points to knip)yes

Where rev-dep is stronger​

Where ts-prune may still fit​

ts-prune is tiny and zero-config for a quick one-off scan, and it explicitly flags exports "used in module" (referenced only within their own file). rev-dep reports an export as unused when no other file imports it, without that separate marker.

Which should you choose?​

For anything ongoing, rev-dep - ts-prune is in maintenance mode and far narrower.

Migrating​

See Migrating from ts-prune.