Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-async-generator-functions

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-async-generator-functions

Turn async generator functions into ES2015 generators

  • 7.0.0-alpha.14
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
120K
decreased by-83.34%
Maintainers
4
Weekly downloads
 
Created

What is babel-plugin-transform-async-generator-functions?

The babel-plugin-transform-async-generator-functions package is a Babel plugin that transforms async generator functions to ES5. This allows developers to use async generator functions in environments that do not natively support them.

What are babel-plugin-transform-async-generator-functions's main functionalities?

Transforming Async Generator Functions

This feature allows you to transform async generator functions into a format that is compatible with ES5. The code sample demonstrates how to use Babel to transform an async generator function using the plugin.

const babel = require('@babel/core');
const code = `
async function* asyncGenerator() {
  yield 'Hello';
  yield 'World';
}
`;
const output = babel.transformSync(code, {
  plugins: ['babel-plugin-transform-async-generator-functions']
});
console.log(output.code);

Other packages similar to babel-plugin-transform-async-generator-functions

Keywords

FAQs

Package last updated on 12 Jul 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc