4.0.1 • Published 5 months ago

@eklmv/jscpd-badge-reporter v4.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@eklmv/jscpd-badge-reporter

The badge reporter for jscpd.

Generate badges like that:

jscpd-badge-green

Getting started

Install

npm install @eklmv/jscpd-badge-reporter

Usage

jscpd [...options] --reporters badge /path/to/source

Options

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

4.0.1

5 months ago