README
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
./node_modules/.bin/dp-create-badge --TEXT custom
Color
./node_modules/.bin/dp-create-badge --COLOR blue
Percentage
./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