1.1.1 • Published 3 years ago

tiny-badge-maker v1.1.1

Weekly downloads
19
License
ISC
Repository
github
Last release
3 years ago

Tiny Badge Maker

npm

Create SVG badges following the Shields badge specification.

npm install tiny-badge-maker

API

tinyBadgeMaker({ label, message, color, labelColor, horizontalPadding })

label

Type: string

The label text is used on the left side of the badge.

message

Type: string

The message text is used on the right side of the badge.

color

Type: string
Default: brightgreen
Options: brightgreen, green, yellowgreen, yellow, orange, red, blue, grey, lightgrey

Accepts a hex value like #fff or one of the options above.

labelColor

Type: string
Default: grey
Options: brightgreen, green, yellowgreen, yellow, orange, red, blue, grey, lightgrey

Accepts a hex value like #fff or one of the options above.

horizontalPadding

Type: number Default: 5

A positive number that is used as padding in pixels.