Skip to content

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

Notifications You must be signed in to change notification settings

albanm/shields-lightweight

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published