Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

shields-lightweight

albanm3.4kMIT0.1.0

The badge making code extracted from the original badges/shields project

badge, shield

readme

shields-lightweight

Build status Code Climate NPM version

A bare minimum implementation of SVG badge generation extracted from the source code of shields.

Only depends on doT.

Install

npm install shields-lightweight

Usage

var shields = require('shields-lightweight');
var svgBadge = shields.svg('subject', 'status', 'red', 'flat');