Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    ci-badgepublic

    ci-badge

    Browser CI badge generation using node-canvas.

    Installation

    $ npm install ci-badge
    

    Example

    var Badge = require('ci-badge');
    var fs = require('fs');
     
    var badge = new Badge;
     
    badge
      .browser('chrome')
      .pass('14.0')
      .pass('15.0')
      .fail('16.0')
      .pass('nightly')
     
    badge
      .browser('safari')
      .pass('5.0.5')
      .fail('5.1.0')
      .pass('5.1.1')
     
    badge
      .browser('firefox')
      .pass('10.0')
      .pass('11.0')
      .pass('12.0')
      .pass('13.0')
      .pass('14.0')
     
    badge
      .browser('ie')
      .fail('7.0')
      .fail('8.0')
      .fail('9.0')
     
    badge
      .browser('opera')
      .pass('10.6')
      .pass('11.0')
     
    fs.writeFile('out.png', badge.render().toBuffer());

    License

    MIT

    Keywords

    none

    install

    npm i ci-badge

    Downloadsweekly downloads

    10

    version

    1.0.1

    license

    none

    last publish

    collaborators

    • avatar