deadwood
v0.1.1
Published
A CLI tool for identifying and optionally removing **dead code** in TypeScript projects. Deadwood helps maintain clean and efficient codebases by detecting unused types, variables, functions, classes, imports, exports, and more.
Maintainers
Readme
🪵 deadwood
A CLI tool for identifying and optionally removing dead code in TypeScript projects. Deadwood helps maintain clean and efficient codebases by detecting unused types, variables, functions, classes, imports, exports, and more.
Features
- Detects unused types, interfaces, enums
- Finds unused variables, functions, classes, and private members
- Identifies unused imports/exports and generic type parameters
- CLI output with summary and per-symbol details
- Configurable via CLI flags or
.deadwoodrc.json
Installation
Global Installation (Recommended)
Install deadwood globally to use it from anywhere:
npm install -g deadwoodThen run:
deadwood [options]Local Installation
You can also install deadwood locally in your project:
npm install --save-dev deadwoodThen run:
npx deadwood [options]CLI Options
Run deadwood --help for all available flags.
