shimmy
v0.1.0
Published
Generates a shim for a given browser
Downloads
2
Readme
node-shimmy
Node shimmy combines browserspec and polyfill.js to dynamically provide you with source files to make up for broken browsers.
Usage
var shimmy = require('shimmy')
var polyfill = require('polyfill')
shimmy({
family:'firefox',
version:'3.0.1'
}, ["JSON"], polyfill, function(error, shims) {
// do something with shims
})
Use useragent to parse the user agent:
var shimmy = require('shimmy')
var polyfill = require('polyfill')
var useragent = require('useragent')
var browser = useragent.parse("Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)")
shimmy(browser, ["Date.now", "JSON"], polyfill, function(error, shims) {
// do something with shims
})
License
Open source software under the zlib license.