browser-badge-cached
v0.0.7
Published
generate browser version compatibility badges or serve them from cache
Downloads
27
Maintainers
Readme
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