Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
cached browser-badge for testling-ci
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
example
index.js
package.json
readme.markdown

readme.markdown

browser-badge

Generate browser version compatibility badges or serve them from cache.

cache dir must exist

Make sure the cache dir exists. This library doesn't create a cache dir for you.

methods

var browserBadgeCached = require('browser-badge-cached')(cacheDir)

Then use it just like browser-badge.

browserBadgeCached(cacheDir)

Return a readable stream of png data from the browser version compatability object browsers.

browsers should map browser names to maps of versions to booleans expressing compatbility.

install

To install the library with npm do:

npm install browser-badge-cached
Something went wrong with that request. Please try again.