Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcello3d/polyfill.js
JavaScript polyfills
https://github.com/marcello3d/polyfill.js
Last synced: 15 days ago
JSON representation
JavaScript polyfills
- Host: GitHub
- URL: https://github.com/marcello3d/polyfill.js
- Owner: marcello3d
- License: zlib
- Created: 2013-02-23T21:43:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T08:25:09.000Z (over 5 years ago)
- Last Synced: 2024-10-18T15:05:56.958Z (29 days ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
Polyfill [![Build Status](https://travis-ci.org/marcello3d/polyfill.js.png)](https://travis-ci.org/marcello3d/polyfill.js)
==================
A collection of polyfills for standard JavaScript features.Notes
-----This is intended for use with [node-shimmy](https://github.com/marcello3d/node-shimmy), and not really a standalone
module.[![browser support](http://ci.testling.com/USER/PROJECT.png)](http://ci.testling.com/USER/PROJECT)
Usage
-----```js
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](LICENSE).Many polyfills based on documentation on [MDN](https://developer.mozilla.org/en-US/docs/JavaScript/Reference) and
[ecmascript.org](http://wiki.ecmascript.org/doku.php).