Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 1.55 KB

README.md

File metadata and controls

26 lines (15 loc) · 1.55 KB

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.

The following badges were generated by shields-lightweight over its own code source using jshint-reporter-badge, mocha-reporter-badge and lcov2badge. If you want to know how, have a look at the gulpfile and travis configuration.

Mocha tests status Tests code coverage status JSHint status

Install

npm install shields-lightweight

Usage

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