dp-create-badge

Create badge based on supplied percentage

Usage no npm install needed!

<script type="module">
  import dpCreateBadge from 'https://cdn.skypack.dev/dp-create-badge';
</script>

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

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