Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (19 sloc) 701 Bytes


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.


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

Then use it just like browser-badge.


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.


To install the library with npm do:

npm install browser-badge-cached