{"name":"@jscpd/badge-reporter","version":"4.2.5","description":"Reporter for jscpd. Generate a badges with copy/paste level.","keywords":["jscpd","cpd","reporter","jscpd-reporter"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com"},"homepage":"https://github.com/kucherenko/jscpd#readme","license":"MIT","main":"dist/index.js","module":"dist/index.mjs","typings":"dist/index.d.mts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./README.md":"./README.md"},"directories":{"src":"src","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/kucherenko/jscpd.git"},"bugs":{"url":"https://github.com/kucherenko/jscpd/issues"},"dependencies":{"badgen":"^3.2.3","colors":"^1.4.0","fs-extra":"^11.2.0"},"devDependencies":{"@types/fs-extra":"^11.0.4","@types/node":"^22.5.2","nodemon":"^3.1.14","tsup":"^8.5.1","vitest":"^4.1.0","@jscpd/core":"4.2.5","@jscpd/finder":"4.2.5","@jscpd/tsconfig":"5.2.4"},"scripts":{"build":"tsup-node --dts","dev":"nodemon","test:dev":"vitest","typecheck":"tsc","cleanup":"rimraf ./dist .turbo"},"_id":"@jscpd/badge-reporter@4.2.5","_integrity":"sha512-ktXrjPeRaRyUDktxTroSA2/w5sshXpQplWkUuq/e6XqEpKBSbGEnwZLIaegSijOrMwIcCXPQ9k4feXIz5eVJNA==","_resolved":"/tmp/92b343a9d53109fe01d43a5a152b7861/jscpd-badge-reporter-4.2.5.tgz","_from":"file:jscpd-badge-reporter-4.2.5.tgz","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-ktXrjPeRaRyUDktxTroSA2/w5sshXpQplWkUuq/e6XqEpKBSbGEnwZLIaegSijOrMwIcCXPQ9k4feXIz5eVJNA==","shasum":"293f754e1f656310024b0692d1efd09dc338b81d","tarball":"http://registry-npm.ywwl.com/@jscpd/badge-reporter/download/@jscpd/badge-reporter-4.2.5.tgz","fileCount":9,"unpackedSize":11704,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGzKNWFQHZlTaarGPI8fFEJkYcqak7q3ub9Tx2Cc7hVcAiAg35zu6R1qo+de78BJc2A4yEo06fZJ43YYcOuwf7yHIw=="}],"size":3762,"noattachment":false,"key":"/@jscpd/badge-reporter/-/@jscpd/badge-reporter-4.2.5.tgz"},"_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"maintainers":[{"name":"apk","email":"kucherenko.andrey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/badge-reporter_4.2.5_1780853266919_0.283700323534924"},"_hasShrinkwrap":false,"readme":"# `@jscpd/badge-reporter`\n\n> The badge reporter for [jscpd](https://github.com/kucherenko/jscpd).\n\nGenerate badges like that:\n\n![jscpd-badge-green](https://raw.githubusercontent.com/kucherenko/jscpd/master/assets/jscpd-badge.svg?sanitize=true)\n\n## Getting started\n\n### Install\n\n```bash\nnpm install @jscpd/badge-reporter\n```\n\n### Usage\n\n```bash\njscpd [...options] --reporters badge /path/to/source\n```\n\n### Options\n\n```typescript\n\ninterface IBadgeOptions {\n  color?: string, // color of badge, if threshold > current - green, if  threshold < current - red, no threshold provided - grey\n  subject?: string, // label of the badge, default \"Copy/Paste\"\n  style?: string, // \"flat\" of undefined, default - undefined\n  icon?: string, // 'data:image/svg+xml;base64,...' icon\n  iconWidth?: number, // width of the icon\n  path?: string, // path to badge, default is 'jscpd-badge.svg' in output folder\n}\n\n```\n\n[MIT](LICENSE) © Andrey Kucherenko\n","publish_time":1780853267052,"_cnpm_publish_time":1780853267052,"dist-tags":{"latest":"4.2.5","rc":"4.0.0"}}