Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polyfill

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

polyfill

JavaScript polyfills

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 24 Feb 2013

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc