{"name":"@jscpd/html-reporter","version":"4.0.4","keywords":["jscpd","cpd","reporter","jscpd-reporter"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com"},"license":"MIT","_id":"@jscpd/html-reporter@4.0.4","maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"homepage":"https://github.com/kucherenko/jscpd#readme","bugs":{"url":"https://github.com/kucherenko/jscpd/issues"},"dist":{"shasum":"4cf290064606f02841833cfe9594bbea92b0c942","tarball":"http://registry-npm.ywwl.com/@jscpd/html-reporter/download/@jscpd/html-reporter-4.0.4.tgz","fileCount":13,"integrity":"sha512-YiepyeYkeH74Kx59PJRdUdonznct0wHPFkf6FLQN+mCBoy6leAWCcOfHtcexnp+UsBFDlItG5nRdKrDSxSH+Kg==","signatures":[{"sig":"MEUCIQCct9njsF7nc706elNIYZ8S29Dcb2B40KraQ+bLW1u78AIgbh9PSsW0CVBzm4aD+I6+4dXQWsaGWAxxL0iIWIJ1HQE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2972669,"size":314751,"noattachment":false,"key":"/@jscpd/html-reporter/-/@jscpd/html-reporter-4.0.4.tgz"},"main":"dist/index.js","_from":"file:jscpd-html-reporter-4.0.4.tgz","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./README.md":"./README.md"},"gitHead":"87a118f80343288c0099a4e3e47ccd875476bf6c","scripts":{"dev":"nodemon","build":"tsup-node --dts","cleanup":"rimraf ./dist .turbo","test:dev":"vitest","postbuild":"ncp ./src/templates ./dist/templates","typecheck":"tsc"},"typings":"dist/index.d.mts","_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"_resolved":"/private/var/folders/38/9m750_w54w1b7hlj0l2bg5pm0000gn/T/d015fe2bcc979a4d67fbbd87b685cbbd/jscpd-html-reporter-4.0.4.tgz","_integrity":"sha512-YiepyeYkeH74Kx59PJRdUdonznct0wHPFkf6FLQN+mCBoy6leAWCcOfHtcexnp+UsBFDlItG5nRdKrDSxSH+Kg==","repository":{"url":"git+ssh://git@github.com/kucherenko/jscpd.git","type":"git"},"_npmVersion":"11.6.2","description":"html reporter for jscpd","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"22.20.0","dependencies":{"pug":"^3.0.3","colors":"1.4.0","fs-extra":"^11.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ncp":"^2.0.0","tsup":"^8.2.4","vitest":"^2.0.5","nodemon":"^3.1.4","@types/pug":"^2.0.10","typescript":"^5.5.4","@jscpd/core":"4.0.4","@types/node":"^22.5.2","autoprefixer":"^10.4.23","@jscpd/finder":"4.0.4","@jscpd/tsconfig":"5.0.4","@types/fs-extra":"^11.0.4"},"_npmOperationalInternal":{"tmp":"tmp/html-reporter_4.0.4_1769768922043_0.4727457318794879","host":"s3://npm-registry-packages-npm-production"},"readme":"# `@jscpd/html-reporter`\n\n> HTML reporter for [jscpd](https://github.com/kucherenko/jscpd) — generates an interactive HTML report with per-format statistics, a duplication graph, and syntax-highlighted clone diff views.\n\nOutput directory: `<output-dir>/html/`  \nEntry point: `<output-dir>/html/index.html`  \nRaw data: `<output-dir>/html/jscpd-report.json`\n\n## Installation\n\n```bash\nnpm install @jscpd/html-reporter\n```\n\n## Usage\n\n```bash\njscpd --reporters html --output ./reports /path/to/source\n```\n\nThen open `./reports/html/index.html` in a browser.\n\n## Programmatic usage\n\n```typescript\nimport { IClone, IOptions, IStatistic } from '@jscpd/core';\nimport HtmlReporter from '@jscpd/html-reporter';\n\nconst options: IOptions = { output: './reports' };\nconst reporter = new HtmlReporter(options);\n\nreporter.report(clones, statistic);\n// writes ./reports/html/index.html and ./reports/html/jscpd-report.json\n```\n\n## License\n\n[MIT](LICENSE) © Andrey Kucherenko\n","publish_time":1769768922199,"_cnpm_publish_time":1769768922199,"dist-tags":{"latest":"4.2.5","rc":"4.0.0"}}