npm.io
1.1.1 • Published 5 years ago

tiny-badge-maker

Licence
ISC
Version
1.1.1
Deps
2
Size
226 kB
Vulns
0
Weekly
0
Stars
6

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.

Keywords