deadcode-detector
v1.0.0
Published
🔍 A CLI tool to detect unused exports/declarations in JS/TS project
Maintainers
Readme
deadcode-detector
A CLI tool to detect unused (dead) code in TypeScript, JavaScript, and JSX/TSX projects.
Features
- Detects unused exports (not used in any file)
- Detects unused local declarations (not used anywhere in the file)
- Supports
.ts,.tsx,.js,.jsx - Progress bar for scanning files
- Colorful and clear output
Installation
Global (recommended)
npm install -g deadcode-detectorOr use npx (no install needed)
npx deadcode-detector <project-path>Usage
deadcode <project-path><project-path>: Path to your project root
Example
deadcode ./my-appLicense
ISC
