Socket
Socket
Sign inDemoInstall

karma-js-polyfills

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    karma-js-polyfills

karma plugin to inject js-polyfills.


Version published
Maintainers
1
Created

Readme

Source

karma-js-polyfills

js-polyfills for karma.

Usage

Install

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

Simple usage

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

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.

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

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

    // ...

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

    // ...

  });
};

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

Keywords

FAQs

Last updated on 07 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc