# raptor-polyfill

> Polyfills for various EcmaScript 5 and EcmaScript 6 methods distributed as CommonJS modules that can be require'd individually or as a whole.

Latest version **1.1.0** (published 2018-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install raptor-polyfill
pnpm add raptor-polyfill
yarn add raptor-polyfill
bun add raptor-polyfill
```

## 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 | 1.1.0 |
| Published | 2018-08-02 |
| First published | 2014-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 39.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Patrick Steele-Idem |
| Maintainers | austinkelleher, dylanpiercey, mlrawlings, philidem, pnidem |
| Keywords | EcmaScript, polyfill, ES5, ES6 |

## Links

- npm: https://www.npmjs.com/package/raptor-polyfill
- Repository: https://github.com/raptorjs/raptor-polyfill
- Homepage: https://github.com/raptorjs/raptor-polyfill#readme
- Issues: https://github.com/raptorjs/raptor-polyfill/issues
- npm.io page: https://npm.io/package/raptor-polyfill

## Recent versions

- 1.1.0 (latest) — 2018-08-02
- 1.0.2 — 2014-11-05
- 1.0.1 — 2014-10-08
- 1.0.0 — 2014-09-22
- 0.2.4-beta — 2014-09-04
- 1.0.0-beta — 2014-09-04
- 0.2.3-beta — 2014-07-23
- 0.2.2-beta — 2014-06-18
- 0.2.1-beta — 2014-06-17
- 0.2.0-beta — 2014-06-17

## README

raptor-polyfil
===========
Polyfills for various EcmaScript 5 and EcmaScript 6 methods distributed as CommonJS modules that can be require'd individually or as a whole. For use with your favorite CommonJS module bundler (such as [RaptorJS Optimizer](https://github.com/raptorjs/optimizer)).

# Usage

## EcmaScript 5

To apply all polyfills (see below):

```javascript
require('raptor-polyfill')
```

You can also apply select groups of methods:

```javascript
require('raptor-polyfill/array');
require('raptor-polyfill/date');
require('raptor-polyfill/function');
require('raptor-polyfill/object');
require('raptor-polyfill/string');
```

Finally, you can apply individual methods:

```javascript

// Array methods
require('raptor-polyfill/array/every');
require('raptor-polyfill/array/filter');
require('raptor-polyfill/array/forEach');
require('raptor-polyfill/array/indexOf');
require('raptor-polyfill/array/isArray');
require('raptor-polyfill/array/lastIndexOf');
require('raptor-polyfill/array/map');
require('raptor-polyfill/array/reduce');
require('raptor-polyfill/array/reduceRight');
require('raptor-polyfill/array/some');

// Date methods
require('raptor-polyfill/date/now');

// Function methods
require('raptor-polyfill/function/bind');

// Object methods
require('raptor-polyfill/object/keys');
require('raptor-polyfill/objects/assign');

// String methods
require('raptor-polyfill/string/trim');
require('raptor-polyfill/string/startsWith');
require('raptor-polyfill/string/endsWith');
```
# Contributing

If you really want to add missing EcmaScript 5 or EcmaScript 6 methods please send a Pull Request.

# License

MIT

# Credits

Based on code from the following projects:

* [es5-shim](https://github.com/es-shims/es5-shim)
* [json.org](http://www.json.org/)

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