polyfill

0.1.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    5,944
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    5,944

Package Sidebar

Install

npm i polyfill

Weekly Downloads

5,944

Version

0.1.0

License

zlib

Last publish

Collaborators

  • marcello
  • defunctzombie