Reporters
HTML Reporter
Generate interactive HTML reports.
Installation
The HTML reporter is included in the main jscpd package, or install separately:
npm install @jscpd/html-reporter
Usage
jscpd --reporters html ./src
Output
The HTML reporter generates an interactive report at ./report/html/index.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/html/index.html.