remy/polyfills

Collection of polyfills that I've written

JavaScript

1,063

74 commits

updated Apr 29, 2022

See the code

README

Polyfills

A way of getting the browser to behave and support the latest specifications.

This is my own collection of code snippets that support different native features of browsers using JavaScript (and if required, Flash in some cases).

Component Installation

You can install polyfills using component:

component install remy/polyfills

If you'd like to include all polyfills (except device motion), you can just:

require( 'polyfills' );

If you'd only like a specific polyfill, you can require indivual ones like this:

require( 'polyfills/classList' );

// now we can use classList in lots of browsers!
element.classList.add( 'foo' );

License

License: http://rem.mit-license.org

remy/polyfills

Collection of polyfills that I've written

JavaScript

1,063

74 commits

updated Apr 29, 2022

See the code

README

Polyfills

A way of getting the browser to behave and support the latest specifications.

This is my own collection of code snippets that support different native features of browsers using JavaScript (and if required, Flash in some cases).

Component Installation

You can install polyfills using component:

component install remy/polyfills

If you'd like to include all polyfills (except device motion), you can just:

require( 'polyfills' );

If you'd only like a specific polyfill, you can require indivual ones like this:

require( 'polyfills/classList' );

// now we can use classList in lots of browsers!
element.classList.add( 'foo' );

License

License: http://rem.mit-license.org

Project health

Overall

2.6/10

Maintained

0/10

Code review

4/10
OpenSSF Scorecard

Significant stargazers

Brett Randall

70 followers · starred Oct 2015

Viktor

89 followers · starred Feb 2011

Flier Lu

156 followers · starred Mar 2014

Pat O'Neill

117 followers · starred Feb 2011