Socket
Book a DemoInstallSign in
Socket

es-env-polyfills

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-env-polyfills

Adding polyfills to a Node.js environment

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

ES-env-polyfills

Adding a bunch of polyfills to your Node.js environments!

Install

npm install es-env-polyfills --save

How to use it

Just require it before anything else (so dependent packages can benefit from the polyfills)

require('es-env-polyfills');

Potential limitations

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

Polyfills list

  • 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!

Licence

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)

Keywords

polyfill

FAQs

Package last updated on 07 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.