Giter Club home page Giter Club logo

mdn-polyfills's Introduction

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

Usage

import 'mdn-polyfills/POLYFILL_NAME';

// For example:

// (ES6 Modules)
import 'mdn-polyfills/Array.prototype.includes';
import 'mdn-polyfills/Object.create';

// (CommonJS)
require('mdn-polyfills/CustomEvent');
require('mdn-polyfills/String.prototype.padStart');

// and so on ...

Supported polyfills

name size [b]
Object.assign 274
Object.create 299
Object.entries 151
Object.values 142
Array.from 788
Array.of 79
Array.prototype.find 330
Array.prototype.forEach 328
Array.prototype.filter 300
Array.prototype.findIndex 362
Array.prototype.includes 346
Array.prototype.some 346
String.prototype.includes 153
String.prototype.repeat 504
String.prototype.startsWith 117
String.prototype.endsWith 148
String.prototype.padStart 209
String.prototype.padEnd 205
String.prototype.trim 121
Function.prototype.bind 427
Node.prototype.append 433
Node.prototype.prepend 452
Node.prototype.before 440
Node.prototype.after 461
Node.prototype.remove 290
Node.prototype.replaceWith 731
Node.prototype.children 245
NodeList.prototype.forEach 158
Element.prototype.closest 386
Element.prototype.toggleAttribute 243
Element.prototype.matches 133
Element.prototype.classList 4433
MouseEvent 281
CustomEvent 279
Number.isNaN 53

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

mdn-polyfills's People

Contributors

hkdobrev avatar keithamus avatar msn0 avatar northamerican avatar octagonal avatar rixlabs avatar smehta11 avatar tremby avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.