Skip to main content

ts-unused-exports vs Rev-dep

ts-unused-exports reports unused exported symbols in a TypeScript project. rev-dep covers that with unusedExportsDetection and a lot more.

At a glance​

ts-unused-exportsRev-dep
Primary focusunused exportsdependency hygiene + architecture
RuntimeNodeGo - single parallel pass (faster)
Unused exportsyesyes
Completely-unused filesyes (--findCompletelyUnusedFiles)yes (orphan files)
Autofixnoyes (config run --fix)
Dependencies / cycles / boundariesnoyes

Where rev-dep is stronger​

  • One tool for unused exports, orphan files, dependencies, cycles, and architecture rules.
  • Autofix removes dead exports.
  • Speed on large repos, and monorepo-aware whole-graph context.

Where ts-unused-exports may still fit​

It's a focused, scriptable CLI with fine-grained flags (--allowUnusedTypes, --ignoreLocallyUsed, inline // ts-unused-exports:disable-next-line). rev-dep maps most of these to config options, but if you've built tooling around its exact CLI output, factor that in.

Which should you choose?​

For ongoing, repo-wide hygiene, rev-dep. For a minimal, single-purpose unused-export check, ts-unused-exports stays viable.

Migrating​

See Migrating from ts-unused-exports.