1.0.0 • Published 6 years ago

dp-create-badge v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

dp-create-badge

Create badge based on supplied percentage

Installation

npm install dp-create-badge

alternatively you can also install it globally.

Usage

./node_modules/.bin/dp-create-badge --PERCENTAGE 95

This will create a coverage.svg with percentage as 95%.

Configuration

Text

Badge

./node_modules/.bin/dp-create-badge --TEXT custom

Color

Badge

./node_modules/.bin/dp-create-badge --COLOR blue

Percentage

Badge

./node_modules/.bin/dp-create-badge --PERCENTAGE 95

Note: If color is not supplied, the color code is automatically decided based on the percentage value.

Filepath

./node_modules/.bin/dp-create-badge --FILEPATH ./badge.svg