Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-async-generators

Package Overview
Dependencies
54
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @babel/plugin-syntax-async-generators

Allow parsing of async generator functions


Version published
Weekly downloads
26M
increased by0.08%
Maintainers
6
Install size
11.2 kB
Created
Weekly downloads
 

Package description

What is @babel/plugin-syntax-async-generators?

The @babel/plugin-syntax-async-generators package allows Babel to parse code that uses async generator functions. These are functions that can pause execution and resume asynchronously, making them useful for handling streams of data or other asynchronous operations in a more readable way than using Promises or callbacks alone.

What are @babel/plugin-syntax-async-generators's main functionalities?

Parsing async generator functions

This code defines an async generator function that yields numbers from 0 to 2. The @babel/plugin-syntax-async-generators package allows Babel to understand and parse this syntax.

async function* asyncGenerator() {
  var i = 0;
  while (i < 3) {
    yield i++;
  }
}

Other packages similar to @babel/plugin-syntax-async-generators

Readme

Source

@babel/plugin-syntax-async-generators

Allow parsing of async generator functions

See our website @babel/plugin-syntax-async-generators for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-syntax-async-generators

or using yarn:

yarn add @babel/plugin-syntax-async-generators --dev

Keywords

FAQs

Last updated on 13 Jan 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc