polyfill
JavaScript polyfills
Last updated 8 years ago by marcello .
zlib · Repository · Original npm · Tarball · package.json
$ cnpm install polyfill 
SYNC missed versions from official npm registry.

Polyfill Build Status

A collection of polyfills for standard JavaScript features.

Notes

This is intended for use with node-shimmy, and not really a standalone module.

Usage

var polyfill = require('polyfill')

polyfill('Array.prototype.forEach', function(error, polyfillSource) {
  // return the JavaScript source for the given polyfill
})

if (polyfill.defines('Date.now')) {
  // check if a polyfill is defined for a given feature name
}

// Print out list of defined polyfill names
console.dir(polyfill.names)

License

Open source software under the zlib license.

Many polyfills based on documentation on MDN and ecmascript.org.

Current Tags

  • 0.1.0                                ...           latest (8 years ago)

1 Versions

  • 0.1.0                                ...           8 years ago
Downloads
Today 0
This Week 7
This Month 148
Last Day 7
Last Week 47
Last Month 162
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |