shimmy

Generates a shim for a given browser

npm install shimmy
1 downloads in the last week
4 downloads in the last month

node-shimmy Build Status

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.

npm loves you