Socket
Book a DemoInstallSign in
Socket

karma-regenerator-preprocessor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-regenerator-preprocessor

A Karma plugin. Compile regenerator on the fly.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

karma-regenerator-preprocessor

Preprocessor to compile regenerator code

Installation

The easiest way is to keep karma-regenerator-preprocessor as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-regenerator-preprocessor": "~0.1"
  }
}

You can simple do it by:

npm install karma-regenerator-preprocessor --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.js': ['regenerator']
    },

    regeneratorPreprocessor: {
      // options passed to regenerator
      options: {
        includeRuntime: true,
      },
    }
  });
};
  • For more information on Karma see the homepage.
  • For more information on Regenerator see the regenerator homepage.

Authors

Keywords

karma-plugin

FAQs

Package last updated on 25 Oct 2014

Did you know?

Socket

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