/ live.thehmm.nl / back / node_modules / regenerator-transform /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]src/2 years ago -  
[DIR]lib/2 years ago -  
[   ]package.json2 years ago1.9K 
[TXT]README.md39 years ago724 d7c1522 post receive test [كارل مبارك]
[   ]LICENSE39 years ago1.1K 
README.md

regenerator-transform

Transform async/generator functions with regenerator

Installation

$ npm install regenerator-transform

Usage

.babelrc

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

Via CLI

$ babel --plugins regenerator-transform script.js

Via Node API

require("@babel/core").transformSync("code", {
  plugins: ["regenerator-transform"]
});
Apache/2.4.38 (Debian) Server at www.karls.computer Port 80