npm.io
1.0.0 • Published 8 years agoCLI

dp-create-badge

Licence
ISC
Version
1.0.0
Deps
1
Size
9 kB
Vulns
1
Weekly
0

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

Keywords