tiny-badge-maker

1.1.1 • Public • Published

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.

/tiny-badge-maker/

    Package Sidebar

    Install

    npm i tiny-badge-maker

    Weekly Downloads

    3

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    231 kB

    Total Files

    8

    Last publish

    Collaborators

    • devoorhoede