Skip to content

Quickstart

Terminal window
npm install --save-dev @optiprune/cli
npx optiprune ./src --entry src/index.ts --dry-run

Start with unreachable files and high-confidence unused imports. Confirm that your entry points include the application, test runner, and any package exports that are consumed externally.

Terminal window
npx optiprune ./src --entry src/index.ts --fail-on high --reporter sarif --output optiprune.sarif

After the baseline is clean, review medium-confidence findings as a normal engineering task rather than turning them into automatic deletions.