{"name":"@jscpd/badge-reporter","version":"4.0.5","keywords":["jscpd","cpd","reporter","jscpd-reporter"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com"},"license":"MIT","_id":"@jscpd/badge-reporter@4.0.5","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":"6414cca202f97a53d7a7c5ab67b3ceacfb77aa6d","tarball":"http://registry-npm.ywwl.com/@jscpd/badge-reporter/download/@jscpd/badge-reporter-4.0.5.tgz","fileCount":9,"integrity":"sha512-SLVhP00R9lkQ//Ivaanfm7k0L9sewpBven670kk1uGec2SWUOa7MVQcuad/TV59KEZ73UIC1lXvi6O9hAnbpUw==","signatures":[{"sig":"MEUCIQC3IfRuEPnjJbg1z2hCpHe/SJp5hsFdMMSHC/8Xrc5FjAIgKVvlx2j+iZ4V1kVnosBKm4FscmUqm6CJguKdkyLfq18=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11733,"size":3763,"noattachment":false,"key":"/@jscpd/badge-reporter/-/@jscpd/badge-reporter-4.0.5.tgz"},"main":"dist/index.js","_from":"file:jscpd-badge-reporter-4.0.5.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/38/9m750_w54w1b7hlj0l2bg5pm0000gn/T/4ade2ed5724355b431ef4fa361422a5b/jscpd-badge-reporter-4.0.5.tgz","_integrity":"sha512-SLVhP00R9lkQ//Ivaanfm7k0L9sewpBven670kk1uGec2SWUOa7MVQcuad/TV59KEZ73UIC1lXvi6O9hAnbpUw==","repository":{"url":"git+ssh://git@github.com/kucherenko/jscpd.git","type":"git"},"_npmVersion":"11.6.2","description":"Reporter for jscpd. Generate a badges with copy/paste level.","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"22.20.0","dependencies":{"badgen":"^3.2.3","colors":"^1.4.0","fs-extra":"^11.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.2.4","vitest":"^2.0.5","nodemon":"^3.1.4","@jscpd/core":"4.0.5","@types/node":"^22.5.2","@jscpd/finder":"4.0.5","@jscpd/tsconfig":"5.0.5","@types/fs-extra":"^11.0.4"},"_npmOperationalInternal":{"tmp":"tmp/badge-reporter_4.0.5_1775822603377_0.6323797784589371","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":1775822603525,"_cnpm_publish_time":1775822603525,"dist-tags":{"latest":"4.2.5","rc":"4.0.0"}}