Socket
Socket
Sign inDemoInstall

mdn-polyfills

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdn-polyfills

MDN polyfills


Version published
Weekly downloads
35K
decreased by-7.02%
Maintainers
1
Weekly downloads
 
Created
Source

https://msn0.github.io/mdn-polyfills

Polyfills copy-pasted from MDN Build Status npm dependencies

MDN polyfills. A collection of side-effect ECMAScript modules. Minimized, mangled and extremely small thanks to Rollup - next-generation ES6 module bundler.

Installation

npm i mdn-polyfills --save

Polyfills

Object.assign

import 'mdn-polyfills/Object.assign'; // 274 bytes

Object.create

import 'mdn-polyfills/Object.create'; // 299 bytes

Object.entries

import 'mdn-polyfills/Object.entries'; // 151 bytes

Array.from

import 'mdn-polyfills/Array.from'; // 788 bytes

Array.of

import 'mdn-polyfills/Array.of'; // 79 bytes

Array.prototype.find

import 'mdn-polyfills/Array.prototype.find'; // 330 bytes

Array.prototype.forEach

import 'mdn-polyfills/Array.prototype.forEach'; // 328 bytes

Array.prototype.filter

import 'mdn-polyfills/Array.prototype.filter'; // 300 bytes

Array.prototype.findIndex

import 'mdn-polyfills/Array.prototype.findIndex'; // 362 bytes

Array.prototype.includes

import 'mdn-polyfills/Array.prototype.includes'; // 346 bytes

Array.prototype.some

import 'mdn-polyfills/Array.prototype.some'; // 346 bytes

String.prototype.includes

import 'mdn-polyfills/String.prototype.includes'; // 153 bytes

String.prototype.repeat

import 'mdn-polyfills/String.prototype.repeat'; // 504 bytes

String.prototype.startsWith

import 'mdn-polyfills/String.prototype.startsWith'; // 117 bytes

String.prototype.endsWith

import 'mdn-polyfills/String.prototype.endsWith'; // 148 bytes

String.prototype.padStart

import 'mdn-polyfills/String.prototype.padStart'; // 209 bytes

String.prototype.padEnd

import 'mdn-polyfills/String.prototype.padEnd'; // 205 bytes

Function.prototype.bind

import 'mdn-polyfills/Function.prototype.bind'; // 427 bytes

Node.prototype.append

import 'mdn-polyfills/Node.prototype.append'; // 433 bytes

Node.prototype.children

import 'mdn-polyfills/Node.prototype.children'; // 245 bytes

NodeList.prototype.forEach

import 'mdn-polyfills/NodeList.prototype.forEach'; // 158 bytes

Element.prototype.closest

import 'mdn-polyfills/Element.prototype.closest'; // 241 bytes

Element.prototype.toggleAttribute

import 'mdn-polyfills/Element.prototype.toggleAttribute'; // 243 bytes

Element.prototype.matches

import 'mdn-polyfills/Element.prototype.matches'; // 133 bytes

MouseEvent

import 'mdn-polyfills/MouseEvent'; // 281 bytes

CustomEvent

import 'mdn-polyfills/CustomEvent'; // 279 bytes

Number.isNaN

import 'mdn-polyfills/Number.isNaN'; // 53 bytes

License

The mdn-polyfills as a module is licensed under MIT © Michał Jezierski
Polyfills are licensed under https://developer.mozilla.org/en-US/docs/MDN/About#Copyrights_and_licenses

Keywords

FAQs

Package last updated on 09 Aug 2018

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