badgs

1.1.1 • Public • Published

badgs

npm license github-issues travis-status coveralls Commitizen friendly

Badges generator

Features

  • Generates badges like any you can see above.
  • No dependecies.
  • Small and possibly work even on client.
  • Easy to write own templating function.
  • Well tested.
  • Express/Connect middleware.

Install

npm i badgs

// OR for CLI usage
npm i -g badgs

Usage

CLI

badgs subject status color [-o output.svg]

// Examples
badgs build success green // File will be saved inbuild-success-green.svg
badgs build success green -o custom_file_name.svg

As module

import Badgs from 'badgs';
 
const badgs = new Badgs();
 
console.log(badgs.render('status', 'subject', 'red'));

Author

Ideas/Templates — stolen from here and here.

Stanislav Sysoev d4rkr00t@gmail.com http://github.com/d4rkr00t

License

Contributing

Contributing are highly welcome! This repos is commitizen friendly — please read about it here.

/badgs/

    Package Sidebar

    Install

    npm i badgs

    Weekly Downloads

    4

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • sysoev