🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@dean0x/diedeadcode

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@dean0x/diedeadcode

Conservative TypeScript dead code detection with transitive analysis and confidence scoring

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

diedeadcode

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.

Installation

npm install -D diedeadcode

Or run directly with npx:

npx diedeadcode .

Quick Start

# 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

Features

  • Fast - Built on oxc for blazing-fast parsing
  • Conservative - Confidence scoring reduces false positives
  • Transitive analysis - Detects code that's only called by other dead code
  • Framework-aware - Understands Next.js, Express, Jest, Vitest patterns
  • Configurable - Ignore patterns, entry points, and more

Configuration

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

Alternative Installation Methods

Cargo (Rust)

cargo install diedeadcode

Homebrew (macOS)

brew install dean0x/tap/diedeadcode

Documentation

See the GitHub repository for full documentation.

License

MIT

Keywords

typescript

FAQs

Package last updated on 31 Jan 2026

Did you know?

Socket

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.

Install

Related posts