{"_id":"@eklmv/jscpd-badge-reporter","name":"@eklmv/jscpd-badge-reporter","dist-tags":{"latest":"4.0.1"},"versions":{"4.0.1":{"name":"@eklmv/jscpd-badge-reporter","version":"4.0.1","description":"Reporter for jscpd. Generate a badges with copy/paste level.","keywords":["@eklmv/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/eklmv/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.4","tsup":"^8.2.4","vitest":"^2.0.5","@eklmv/jscpd-tsconfig":"5.0.1","@eklmv/jscpd-finder":"4.0.1","@eklmv/jscpd-core":"4.0.1"},"scripts":{"build":"tsup-node --dts","dev":"nodemon","test:dev":"vitest","typecheck":"tsc","cleanup":"rimraf ./dist .turbo"},"_id":"@eklmv/jscpd-badge-reporter@4.0.1","_integrity":"sha512-W9af2ySmyevUnR0jI1eQuwwOimETdXZWOpo78TIj9FCfXJSpAyHTquCaZMRl7stfNkwRIhTbHZ5HEXTR4x+ozw==","_resolved":"/private/var/folders/s_/rs3w0h1n2v138tk_px2b_fd40000gq/T/b524990dc49e0d8ed7be2c4e721b2f34/eklmv-jscpd-badge-reporter-4.0.1.tgz","_from":"file:eklmv-jscpd-badge-reporter-4.0.1.tgz","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-W9af2ySmyevUnR0jI1eQuwwOimETdXZWOpo78TIj9FCfXJSpAyHTquCaZMRl7stfNkwRIhTbHZ5HEXTR4x+ozw==","shasum":"36c87ab7c4e8fa4d9d7f73c886be032f29c0609b","tarball":"https://registry.npmjs.org/@eklmv/jscpd-badge-reporter/-/jscpd-badge-reporter-4.0.1.tgz","fileCount":9,"unpackedSize":11805,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIB+zRl7nVZwqWMVtsSNQF0GEYDLToZkszcahUUGc6a/5AiEAomr71ERFUE107s8m2hpT4FvqQm63Rz2E1JCPdSxYFRc="}]},"_npmUser":{"name":"eklmv","email":"eklmv.mail@gmail.com"},"maintainers":[{"name":"eklmv","email":"eklmv.mail@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jscpd-badge-reporter_4.0.1_1748512993937_0.8140027553613214"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-29T10:03:13.872Z","4.0.1":"2025-05-29T10:03:14.120Z","modified":"2025-05-29T10:03:14.384Z"},"maintainers":[{"name":"eklmv","email":"eklmv.mail@gmail.com"}],"description":"Reporter for jscpd. Generate a badges with copy/paste level.","homepage":"https://github.com/kucherenko/jscpd#readme","keywords":["@eklmv/jscpd","cpd","reporter","jscpd-reporter"],"repository":{"type":"git","url":"git+ssh://git@github.com/eklmv/jscpd.git"},"author":{"name":"Andrey Kucherenko","email":"kucherenko.andrey@gmail.com"},"bugs":{"url":"https://github.com/kucherenko/jscpd/issues"},"license":"MIT","readme":"# `@eklmv/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 @eklmv/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","readmeFilename":"README.md","_rev":"1-81bb5a718ae196f512f7cea95d671075"}