badge-maker
Last updated
Last updated
With CommonJS in JavaScript,
With ESM or TypeScript,
The format is the following:
There are three ways to specify color
and labelColor
:
A three- or six-character hex color, optionally prefixed with #
:
etc.
rgb(...)
, rgba(...)
hsl(...)
, hsla(...)
The latest version of badge-maker supports all currently maintained Node versions. See the .
One of the :
– the default labelColor
– the default color
– the default color
, e.g.
etc.
Conversion to raster formats is no longer directly supported. In javascript code, SVG badges can be converted to raster formats using a library like . On the console, the output of badge
can be piped to a utility like e.g: badge build passed :green | magick svg:- gif:-
.