{"name":"@jscpd/badge-reporter","version":"4.2.2","keywords":["jscpd","cpd","reporter","jscpd-reporter"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com"},"license":"MIT","_id":"@jscpd/badge-reporter@4.2.2","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":"3f538bacbc4e7b67ad8672afcb59cfe3a9149c77","tarball":"http://registry-npm.ywwl.com/@jscpd/badge-reporter/download/@jscpd/badge-reporter-4.2.2.tgz","fileCount":9,"integrity":"sha512-03ngWGBtvdL6dRC7+Q/4FdoUozN4KBHpaJ1SjGnPaMuPoEmcGDdw7W/+HfhPWSwpzam3lfTM2yBsGhrG2g3LqQ==","signatures":[{"sig":"MEUCIGo9gf111QDgUuwYe49nmrJ5xkwCBtv6DqQqLpwMby2zAiEAoIky7gIXhgDtACgE8MG2A2OtFWgkYvCv/HtNJnouw7Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11705,"size":3742,"noattachment":false,"key":"/@jscpd/badge-reporter/-/@jscpd/badge-reporter-4.2.2.tgz"},"main":"dist/index.js","_from":"file:jscpd-badge-reporter-4.2.2.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/e86e955da13b7e342f2d092ea76ff793/jscpd-badge-reporter-4.2.2.tgz","_integrity":"sha512-03ngWGBtvdL6dRC7+Q/4FdoUozN4KBHpaJ1SjGnPaMuPoEmcGDdw7W/+HfhPWSwpzam3lfTM2yBsGhrG2g3LqQ==","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.2","@types/node":"^22.5.2","@jscpd/finder":"4.2.2","@jscpd/tsconfig":"5.2.2","@types/fs-extra":"^11.0.4"},"_npmOperationalInternal":{"tmp":"tmp/badge-reporter_4.2.2_1778872632549_0.04627487732383706","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":1778872632737,"_cnpm_publish_time":1778872632737,"dist-tags":{"latest":"4.2.5","rc":"4.0.0"}}