shields-lightweight
Version:
The badge making code extracted from the original badges/shields project
20 lines (11 loc) • 787 B
Markdown
# shields-lightweight
[](https://travis-ci.org/albanm/shields-lightweight)
[](https://codeclimate.com/github/albanm/shields-lightweight)
[](http://badge.fury.io/js/shields-lightweight)
*A bare minimum implementation of SVG badge generation extracted from the source code of [shields](https://github.com/badges/shields).*
Only depends on [doT](http://olado.github.io/doT/index.html).
## Install
npm install shields-lightweight
## Usage
var shields = require('shields-lightweight');
var svgBadge = shields.svg('subject', 'status', 'red', 'flat');