Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

regenerator-transform

Package Overview
Dependencies
1
Maintainers
1
Versions
35
Issues
File Explorer

Advanced tools

regenerator-transform

Explode async and generator functions into a state machine.

    0.15.1nextlatest

Version published
Maintainers
1
Weekly downloads
18,998,037
decreased by-11.88%

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 15,181,449 weekly downloads. As such, regenerator-transform popularity was classified as popular.

Is regenerator-transform well maintained?

We found that regenerator-transform demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 14 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
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