A powerful, configurable CLI tool designed to keep your JavaScript and TypeScript projects clean and maintainable.
A powerful, configurable CLI tool designed to keep your JavaScript and TypeScript projects clean and maintainable. It scans your codebase to detect unused files, functions, classes, and exports, and can automatically remove them for you.
- Smart Scanning: Detects unused exports and non-exported declarations (dead code).
- Safe Fixes: Automatically removes unused code while preserving structure using brace counting and syntax awareness.
- Configurable: Support for includeDirs (whitelist) and excludeDirs (blacklist) for precise control.
- Safety Checks: Warns you if you attempt to scan typically excluded directories (like node_modules).
- Detailed Reports: Generates comprehensive Markdown reports in .mayrlabs/prunejs/reports/ for detailed analysis.
Technologies: JavaScript, TypeScript, Node.js, NPM, JSON, Bash