Reporters

HTML Reporter

Generate interactive HTML reports.

Installation

The HTML reporter is included in jscpd v5 by default — no separate installation needed.

Usage

jscpd --reporters html ./src

Output

The HTML reporter generates an interactive report at ./report/jscpd-report.html by default.

The report includes:

  • Summary statistics
  • List of all detected duplications
  • Side-by-side code comparison
  • Filtering and sorting options

Configuration

.jscpd.json
{
  "reporters": ["html"],
  "output": "./jscpd-report"
}

The report will be generated at ./jscpd-report/jscpd-report.html.