Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

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.

You can’t perform that action at this time.