{"name":"@jscpd/badge-reporter","version":"4.2.0","keywords":["jscpd","cpd","reporter","jscpd-reporter"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com"},"license":"MIT","_id":"@jscpd/badge-reporter@4.2.0","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":"ebeb6b16a8513de2b5e1082f1a48e3e0405e5f4e","tarball":"http://registry-npm.ywwl.com/@jscpd/badge-reporter/download/@jscpd/badge-reporter-4.2.0.tgz","fileCount":9,"integrity":"sha512-edvLAhMBsIo4OLsRTZNO6Mwm4rwJCiWYBiWc4qQdo6ZNFbJ6Sp3ZU9ceyEFMxFVBH2hwX94rHWzO4FgO4Rg4OQ==","signatures":[{"sig":"MEYCIQC6BWOuZC2EB+wJ2tbIijiuuBO8RvcMqW1vm3M+C+YRLwIhAJ9nbGrjhkA+px7gNLky9u5twUH06w3M0ROHRQkxlC6Y","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11705,"size":3741,"noattachment":false,"key":"/@jscpd/badge-reporter/-/@jscpd/badge-reporter-4.2.0.tgz"},"main":"dist/index.js","_from":"file:jscpd-badge-reporter-4.2.0.tgz","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./README.md":"./README.md"},"scripts":{"dev":"nodemon","build":"tsup-node --dts","cleanup":"rimraf ./dist .turbo","test:dev":"vitest","typecheck":"tsc"},"typings":"dist/index.d.mts","_npmUser":{"name":"apk","email":"kucherenko.andrey@gmail.com"},"_resolved":"/private/var/folders/rh/82vm3q314snd3ymwr5n577_00000gp/T/b2b11730c1fe8b9b92ededdd432a0874/jscpd-badge-reporter-4.2.0.tgz","_integrity":"sha512-edvLAhMBsIo4OLsRTZNO6Mwm4rwJCiWYBiWc4qQdo6ZNFbJ6Sp3ZU9ceyEFMxFVBH2hwX94rHWzO4FgO4Rg4OQ==","repository":{"url":"git+ssh://git@github.com/kucherenko/jscpd.git","type":"git"},"_npmVersion":"11.12.1","description":"Reporter for jscpd. Generate a badges with copy/paste level.","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"26.0.0","dependencies":{"badgen":"^3.2.3","colors":"^1.4.0","fs-extra":"^11.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","vitest":"^3.2.4","nodemon":"^3.1.4","@jscpd/core":"4.2.0","@types/node":"^22.5.2","@jscpd/finder":"4.2.0","@jscpd/tsconfig":"5.2.0","@types/fs-extra":"^11.0.4"},"_npmOperationalInternal":{"tmp":"tmp/badge-reporter_4.2.0_1778757608253_0.09348130476428707","host":"s3://npm-registry-packages-npm-production"},"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":1778757608409,"_cnpm_publish_time":1778757608409,"dist-tags":{"latest":"4.2.5","rc":"4.0.0"}}