# karma-js-polyfills

> karma plugin to inject js-polyfills.

Latest version **0.0.3** (published 2018-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install karma-js-polyfills
pnpm add karma-js-polyfills
yarn add karma-js-polyfills
bun add karma-js-polyfills
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2018-03-07 |
| First published | 2018-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 39.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hiroki IKEDA |
| Maintainers | h-ikeda |
| Keywords | karma, karma-plugin, polyfill, standards |

## Links

- npm: https://www.npmjs.com/package/karma-js-polyfills
- Repository: https://github.com/h-ikeda/karma-js-polyfills
- Homepage: https://github.com/h-ikeda/karma-js-polyfills#readme
- Issues: https://github.com/h-ikeda/karma-js-polyfills/issues
- npm.io page: https://npm.io/package/karma-js-polyfills

## Dependencies (1)

- [js-polyfills](https://npm.io/package/js-polyfills.md) ^0.1.42

## Recent versions

- 0.0.3 (latest) — 2018-03-07
- 0.0.2 — 2018-03-07
- 0.0.1 — 2018-03-07
- 0.0.0 — 2018-03-07

## README

# karma-js-polyfills

[js-polyfills](https://www.npmjs.com/package/js-polyfills) for [karma](https://www.npmjs.com/package/karma).

## Usage

### Install

```bash
npm install --save-dev karma-js-polyfills
```

### Simple usage

Add `js-polyfills` to the frameworks in your karma configuration.

```js
module.exports = config => {
  config.set({

    // ...

    frameworks: ['mocha', 'chai', 'js-polyfills'],

    // ...

  });
};
```

### Configuration

Without configuration, this plugin inject `polyfill.js`, which is main file of the [js-polyfills](https://www.npmjs.com/package/js-polyfills).

To customize the injected file list, Add an array of polyfill names as `jsPolyfills` key to your karma configuration.

```js
module.exports = config => {
  config.set({

    // ...

    jsPolyfills: ['typedarray', 'timing'],

    // ...

  });
};
```

Then, `typedarray.js` and `timing.js` will be enabled.

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