Skip to content
Browser and JS shims used by Airbnb.
Branch: master
Clone or download
Latest commit 6e8a974 Mar 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test [Dev Deps] update `eslint`, `eslint-config-airbnb-base`, `eslint-plug… Jan 26, 2019
.eslintrc
.gitignore
.npmrc Only apps should have lockfiles Jun 7, 2017
.travis.yml [Tests] up to `node` `v11`; only test majors Jan 26, 2019
CHANGELOG.md v3.2.1 Mar 10, 2019
LICENSE Initial commit Aug 17, 2016
README.md [New] Add KeyboardEvent.key shim Jan 26, 2019
browser-only.js [New] Add KeyboardEvent.key shim Jan 26, 2019
document-contains.js
index.js
package.json

README.md

airbnb-browser-shims Version Badge

Browser and JS language shims used by Airbnb.

Just require/import airbnb-browser-shims, and the environment will be shimmed.

import 'airbnb-browser-shims';

Included shims

Only browser shims

If you only want to bring in the browser shims and not the JS language shims (from airbnb-js-shims), you can import airbnb-browser-shims/browser-only. If you choose this route, you will want to be sure that you are properly bringing in the language shims for the browsers you support somehow. For example:

import 'airbnb-js-shims/target/es2015';
import 'airbnb-browser-shims/browser-only';
You can’t perform that action at this time.