Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/remy/polyfills
Collection of polyfills that I've written
https://github.com/remy/polyfills
Last synced: 6 days ago
JSON representation
Collection of polyfills that I've written
- Host: GitHub
- URL: https://github.com/remy/polyfills
- Owner: remy
- License: mit
- Created: 2011-02-05T15:30:52.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2022-04-29T20:50:40.000Z (over 2 years ago)
- Last Synced: 2024-10-11T13:12:30.700Z (23 days ago)
- Language: JavaScript
- Homepage:
- Size: 42 KB
- Stars: 1,070
- Watchers: 36
- Forks: 166
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-repos - remy/polyfills - Collection of polyfills that I've written (JavaScript)
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:
```javascript
require( 'polyfills' );
```If you'd only like a specific polyfill, you can require indivual ones like this:
```javascript
require( 'polyfills/classList' );// now we can use classList in lots of browsers!
element.classList.add( 'foo' );
```# License
License: http://rem.mit-license.org