{"name":"@jscpd/badge-reporter","version":"4.0.2","keywords":["jscpd","cpd","reporter","jscpd-reporter"],"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com"},"license":"MIT","_id":"@jscpd/badge-reporter@4.0.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":"137f2a7ac9b4dfcda51e6f05e1a73cf02df7b31e","tarball":"http://registry-npm.ywwl.com/@jscpd/badge-reporter/download/@jscpd/badge-reporter-4.0.2.tgz","fileCount":9,"integrity":"sha512-io34OajpaZzwRQMNLuZ7qaqEKFwkZUCUtz/Xi/ve+ls7Beskv7hKG+cq92KY3SGC+m5c7avDr9VLH0pH/VvtIQ==","signatures":[{"sig":"MEUCIQCvhaQ6Zt5KvVR2aosL2oTp7zXfsdweyBbOO4XlLkSWDgIgWa51yEVBMvYDj/y6v3NlkNn4Ab0uoNWeS68j0ZZe9x0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11335,"size":3432,"noattachment":false,"key":"/@jscpd/badge-reporter/-/@jscpd/badge-reporter-4.0.2.tgz"},"main":"dist/index.js","_from":"file:jscpd-badge-reporter-4.0.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/1e4d1bb7a29ecd7ed67d9961698a2acc/jscpd-badge-reporter-4.0.2.tgz","_integrity":"sha512-io34OajpaZzwRQMNLuZ7qaqEKFwkZUCUtz/Xi/ve+ls7Beskv7hKG+cq92KY3SGC+m5c7avDr9VLH0pH/VvtIQ==","repository":{"url":"git+ssh://git@github.com/kucherenko/jscpd.git","type":"git"},"_npmVersion":"10.9.4","description":"Reporter for jscpd. Generate a badges with copy/paste level.","directories":{"src":"src","test":"__tests__"},"_nodeVersion":"22.21.1","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.2","@types/node":"^22.5.2","@jscpd/finder":"4.0.2","@jscpd/tsconfig":"5.0.2","@types/fs-extra":"^11.0.4"},"_npmOperationalInternal":{"tmp":"tmp/badge-reporter_4.0.2_1768119073462_0.2260529403829734","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":1768119073614,"_cnpm_publish_time":1768119073614,"dist-tags":{"latest":"4.2.5","rc":"4.0.0"}}