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

require-polyfills

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require-polyfills

Collection of polyfils that load automatically using require-bundle-js by detecting what is missing in the browser.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Require Polyfills

npm version DragsterJS gzip size

Collection of polyfils that load automatically using require-bundle-js by detecting what is missing in the browser.

Installation

Require Polyfills also need Require Bundle JS which needs to be loaded first. Download the scripts from dist folder and include them in your HTML preferably inside the document <head> element.

<script type="text/javascript" src="path/to/dist/require-bundle.min.js"></script>
<script type="text/javascript" src="path/to/dist/require-polyfills.min.js"></script>

The required polyfills for the current browser will be loaded automatically as Require Polyfills test if the browser supports the feature for each polyfill.

NPM

Require Polyfills is also available on NPM:

$ npm install require-polyfills

Supported Polyfills

  • bind
  • classList
  • closest
  • CustomEvents
  • matches
  • matchMedia
  • ObjectEntries
  • Promise
  • requestAnimationFrame

Contributing to Development

This isn't a large project by any means, but you are definitely welcome to contribute.

Development environment

Clone the repo and run npm install:

$ cd path/to/require-polyfills
$ npm install

Run the build command:

$ gulp build

Build on file save:

$ gulp
$ gulp watch

License

Licensed under MIT.

Keywords

FAQs

Package last updated on 30 Sep 2020

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