Skip to content
This repository has been archived by the owner on Dec 1, 2020. It is now read-only.

Reporter for jscpd tool, generate badges with information about copy/paste

License

Notifications You must be signed in to change notification settings

kucherenko/jscpd-badge-reporter

Repository files navigation

The repo is depricated, use @jscpd/badge-reporter

jscpd-badge-reporter

The badge reporter for jscpd.

Generate badges:

jscpd-badge-green jscpd-badge-green

Getting started

Install

npm install jscpd jscpd-badge-reporter -g

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

About

Reporter for jscpd tool, generate badges with information about copy/paste

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •