1.1.3 • Published 7 years ago
jscpd-badge-reporter v1.1.3
jscpd-badge-reporter
The badge reporter for jscpd.
Generate badges:
Getting started
Install
npm install jscpd@1.0.0-rc.5 jscpd-badge-reporter -gUsage
jscpd [...options] --reporters badge /path/to/sourceOptions
interface IBadgeOptions {
  color?: string, // color of badge, if threshold > current - green, if  threshold < current - red, no threshold provided - grey
  subject?: string, // label of the badge, default "Copy/Paste" 
  style?: string, // "flat" of undefined, default - undefined
  icon?: string, // 'data:image/svg+xml;base64,...' icon
  iconWidth?: number, // width of the icon
  path?: string, // path to badge, default is 'jscpd-badge.svg' in output folder
}MIT © Andrey Kucherenko