Wondering what’s next for npm?Check out our public roadmap! »

    @jscpd/badge-reporter
    TypeScript icon, indicating that this package has built-in type declarations

    3.3.23 • Public • Published

    @jscpd/badge-reporter

    The badge reporter for jscpd.

    Generate badges like that:

    jscpd-badge-green

    Getting started

    Install

    npm install @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

    Install

    npm i @jscpd/badge-reporter

    DownloadsWeekly Downloads

    2,120

    Version

    3.3.23

    License

    MIT

    Unpacked Size

    6.22 kB

    Total Files

    6

    Last publish

    Collaborators

    • avatar