# airbnb-js-shims

> JS language shims used by Airbnb.

Latest version **2.2.1** (published 2019-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install airbnb-js-shims
pnpm add airbnb-js-shims
yarn add airbnb-js-shims
bun add airbnb-js-shims
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2019-11-15 |
| First published | 2016-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 17 |
| Unpacked size | 15.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 123 |
| Author | Jordan Harband |
| Maintainers | airbnbeng, lencioni, ljharb, milesj, schleyfox |
| Keywords | shims, polyfills |

## Links

- npm: https://www.npmjs.com/package/airbnb-js-shims
- Repository: https://github.com/airbnb/js-shims
- Homepage: https://github.com/airbnb/js-shims#readme
- Issues: https://github.com/airbnb/js-shims/issues
- npm.io page: https://npm.io/package/airbnb-js-shims

## Dependencies (17)

- [es5-shim](https://npm.io/package/es5-shim.md) ^4.5.13
- [es6-shim](https://npm.io/package/es6-shim.md) ^0.35.5
- [globalthis](https://npm.io/package/globalthis.md) ^1.0.0
- [object.values](https://npm.io/package/object.values.md) ^1.1.0
- [array-includes](https://npm.io/package/array-includes.md) ^3.0.3
- [object.entries](https://npm.io/package/object.entries.md) ^1.1.0
- [object.fromentries](https://npm.io/package/object.fromentries.md) ^2.0.0 || ^1.0.0
- [promise.allsettled](https://npm.io/package/promise.allsettled.md) ^1.0.0
- [array.prototype.flat](https://npm.io/package/array.prototype.flat.md) ^1.2.1
- [array.prototype.flatmap](https://npm.io/package/array.prototype.flatmap.md) ^1.2.1
- [function.prototype.name](https://npm.io/package/function.prototype.name.md) ^1.1.0
- [string.prototype.padend](https://npm.io/package/string.prototype.padend.md) ^3.0.0
- [promise.prototype.finally](https://npm.io/package/promise.prototype.finally.md) ^3.1.0
- [string.prototype.matchall](https://npm.io/package/string.prototype.matchall.md) ^4.0.0 || ^3.0.1
- [string.prototype.padstart](https://npm.io/package/string.prototype.padstart.md) ^3.0.0
- [symbol.prototype.description](https://npm.io/package/symbol.prototype.description.md) ^1.0.0
- [object.getownpropertydescriptors](https://npm.io/package/object.getownpropertydescriptors.md) ^2.0.3

## Recent versions

- 2.2.1 (latest) — 2019-11-15
- 1.7.1 (backport) — 2018-08-31
- 2.2.0 — 2019-04-25
- 2.1.1 — 2018-08-31
- 1.7.0 — 2018-07-25
- 2.1.0 — 2018-07-25
- 2.0.0 — 2018-06-15
- 1.6.0 — 2018-06-01
- 1.5.2 — 2018-05-27
- 1.5.1 — 2018-05-22
- 1.5.0 — 2018-05-22
- 1.4.1 — 2018-01-24
- 1.4.0 — 2017-11-30
- 1.3.0 — 2017-07-28
- 1.2.0 — 2017-07-14
- … 4 more at https://npm.io/package/airbnb-js-shims/versions

## README

# airbnb-js-shims <sup>[![Version Badge][2]][1]</sup>

JS language shims used by Airbnb.

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

```js
import 'airbnb-js-shims';
```

## Included shims

 - [es5-shim](https://www.npmjs.com/package/es5-shim)
 - [es5-sham](https://www.npmjs.com/package/es5-shim)
 - [es6-shim](https://www.npmjs.com/package/es6-shim)
 - [Function.prototype.name](https://www.npmjs.com/package/function.prototype.name)
 - [Array.prototype.includes](https://www.npmjs.com/package/array-includes) (ES7/ES2016)
 - [Object.entries](https://www.npmjs.com/package/object.entries) (ES8/ES2017)
 - [Object.values](https://www.npmjs.com/package/object.values) (ES8/ES2017)
 - [String.prototype.padStart](https://www.npmjs.com/package/string.prototype.padstart) (ES8/ES2017)
 - [String.prototype.padEnd](https://www.npmjs.com/package/string.prototype.padend) (ES8/ES2017)
 - [Promise.prototype.finally](https://npmjs.com/package/promise.prototype.finally) (ES2018)
 - [Array.prototype.flat](https://npmjs.com/package/array.prototype.flat) (ES2019)
 - [Array.prototype.flatMap](https://npmjs.com/package/array.prototype.flatmap) (ES2019)
 - [Symbol.prototype.description](https://npmjs.com/package/symbol.prototype.description) (ES2019)
 - [Object.fromEntries](https://npmjs.com/package/object.fromentries) (ES2019)
 - [String.prototype.matchAll](https://npmjs.com/package/string.prototype.matchall) (ES2019)
 - [globalThis](https://www.npmjs.com/package/globalthis) (Stage 3)
 - [Promise.allSettled](https://www.npmjs.com/package/promise.allsettled) (Stage 3)

## Targeting versions

If you do not need to support older browsers, you can pick a subset of ES versions to target. For example, if you don't support pre-ES5 browsers, you can start your shims with ES2015 by requiring/importing the specific target file. This will shim the environment for that version and upward.

```js
import 'airbnb-js-shims/target/es2015';
```

### Included targets

- `airbnb-js-shims/target/es5` (default)
- `airbnb-js-shims/target/es2015`
- `airbnb-js-shims/target/es2016`
- `airbnb-js-shims/target/es2017`
- `airbnb-js-shims/target/es2018`
- `airbnb-js-shims/target/es2019`
- `airbnb-js-shims/target/es2020`

[1]: https://npmjs.org/package/airbnb-js-shims
[2]: http://versionbadg.es/airbnb/js-shims.svg

---
_Source: https://npm.io/package/airbnb-js-shims · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
