Have ideas to improve npm?Join in the discussion! »

screeps-regenerator-transform

1.0.1 • Public • Published

screeps-regenerator-transform

Transform async/generator functions with screeps-regenerator

Installation

$ npm install screeps-regenerator-transform

Usage

Via .babelrc (Recommended)

.babelrc

// without options
{
  "plugins": ["screeps-regenerator-transform"]
}
// with options
{
  "plugins": [
    ["screeps-regenerator-transform", {
      asyncGenerators: false, // true by default
      generators: false, // true by default
      async: false // true by default
    }]
  ]
}

Via CLI

$ babel --plugins screeps-regenerator-transform script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["screeps-regenerator-transform"]
});

Install

npm i screeps-regenerator-transform

DownloadsWeekly Downloads

3

Version

1.0.1

License

BSD

Last publish

Collaborators

  • avatar