Atlas
v2.0.01Built by Yash Sakre

atlas dead-code

Find unused exports, orphans and duplicates.

Usage
atlas dead-code [root] [options]
atlas dead [root] [options]      # alias

Overview

Reports exports nothing imports, files no one references, and likely duplicate implementations — the three biggest sources of bloat in a frontend. Great as a pre-cleanup pass or a CI gate with --json.

Options

FlagDefaultDescription
-r, --root <dir>cwdProject root to analyze. Also accepted as a positional path argument.
-o, --out-dir <dir>.atlasDirectory for analysis output and cache.
--jsonOutput the report as JSON instead of a formatted table.

Examples

atlas dead-code

# Machine-readable output for CI
atlas dead-code --json

On this page