
Security News
Frontier AI Is Now Critical Infrastructure
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.
@dean0x/diedeadcode
Advanced tools
Conservative TypeScript dead code detection with transitive analysis and confidence scoring
Conservative dead code detection for TypeScript and JavaScript.
ddd finds unused exports, unreachable functions, and dead code in your codebase with confidence scoring to minimize false positives.
npm install -D diedeadcode
Or run directly with npx:
npx diedeadcode .
# Analyze current directory
ddd .
# Analyze with verbose output
ddd . --verbose
# Initialize config file
ddd init
# Output as JSON
ddd analyze . --format json
# Check mode (exit code 1 if dead code found)
ddd analyze . --check
Run ddd init to generate a ddd.toml in your project root:
# Files to analyze
include = ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
exclude = ["**/node_modules/**", "**/dist/**", "**/*.test.*"]
# Entry points
[entry]
files = ["src/index.ts", "src/main.ts"]
patterns = ["**/pages/**/*.tsx"]
autoDetect = true
# Output settings
[output]
format = "table"
minConfidence = "high"
showChains = true
cargo install diedeadcode
brew install dean0x/tap/diedeadcode
See the GitHub repository for full documentation.
MIT
FAQs
Conservative TypeScript dead code detection with transitive analysis and confidence scoring
We found that @dean0x/diedeadcode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Fable shutdown shows how quickly model access can become a business continuity risk for AI-dependent engineering teams.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.