Skip to content

Reporters

The terminal reporter is optimized for humans. JSON is stable for scripts, dashboards, and custom annotations. SARIF is designed for code-scanning integrations.

Terminal window
npx optiprune ./src --reporter json --output optiprune.json
npx optiprune ./src --reporter sarif --output optiprune.sarif

Keep reports as CI artifacts when you need historical comparison. Avoid committing generated reports unless your project intentionally treats them as release evidence.