Big update!Announcing Socket for GitHub 1.0. Learn more
Socket
BlogLoveFAQ
Install
Log in

regenerator-transform

Package Overview
Dependencies
1
Maintainers
1
Versions
34
Issues
File Explorer

Advanced tools

regenerator-transform

Explode async and generator functions into a state machine.

    0.14.5latest

Version published
Maintainers
1
Weekly downloads
18,914,907
decreased by-0.83%

Weekly downloads

Readme

Source

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"] });

Keywords

FAQs

What is regenerator-transform?

Explode async and generator functions into a state machine.

Is regenerator-transform popular?

The npm package regenerator-transform receives a total of 18,095,116 weekly downloads. As such, regenerator-transform popularity was classified as popular.

Is regenerator-transform well maintained?

We found that regenerator-transform demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 30 Jun 2020
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc