Adding polyfills to a Node.js environment
npm install es-env-polyfillsAdding a bunch of polyfills to your Node.js environments!
```sh``
npm install es-env-polyfills --save
Just require it before anything else (so dependent packages can benefit from the polyfills)
``sh```
require('es-env-polyfills');
For now, this has only been tested and used on Node.js™ 0.10.
It should work fine on 0.12 and io.js but in the unlikely case you run into problems, please file an issue
* Map
* Set
* WeakMap
* Object.assign
* Array.prototype.find
* Array.prototype.findIndex
* Array.from
* String.prototype.includes
* String.prototype.startsWith
* String.prototype.endsWith
These are only the polyfills I've been needing so far in various projects. This repo is happily accepting pull requests if you want to see other polyfills!
ISC
MDN polyfills are MIT licenced or dedicated to the Public Domain
es6-set/map/weak-map and es6-promise are MIT-licenced (see package dependencies)