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

babel-plugin-syntax-async-functions

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-syntax-async-functions

Allow parsing of async functions

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

Version published
Weekly downloads
690K
decreased by-46.97%
Maintainers
6
Weekly downloads
 
Created
Source

babel-plugin-syntax-async-functions

This plugin allows Babel to parse async functions.

Example

Syntax

(async function() {
  await loadStory();
  console.log("Yey, story successfully loaded!");
}());

Installation

npm install --save-dev babel-plugin-syntax-async-functions

Usage

.babelrc

{
  "plugins": ["syntax-async-functions"]
}

Via CLI

babel --plugins syntax-async-functions script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-async-functions"]
});

References

  • Proposal: Async Functions for ECMAScript

Keywords

FAQs

Package last updated on 23 Mar 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