albanm / shields-lightweight

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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');

About

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


Languages

Language:JavaScript 100.0%