Socket
Socket
Sign inDemoInstall

babel-plugin-syntax-async-functions

Package Overview
Dependencies
0
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.13.0 to 7.0.0-alpha.1

4

lib/index.js

@@ -11,4 +11,2 @@ "use strict";

};
};
module.exports = exports["default"];
};
{
"name": "babel-plugin-syntax-async-functions",
"version": "6.13.0",
"version": "7.0.0-alpha.1",
"description": "Allow parsing of async functions",

@@ -5,0 +5,0 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-async-functions",

# babel-plugin-syntax-async-functions
Allow parsing of async functions.
This plugin allows Babel to parse async functions.
## Example
**Syntax**
```javascript
(async function() {
await loadStory();
console.log("Yey, story successfully loaded!");
}());
```
## Installation
```sh
$ npm install babel-plugin-syntax-async-functions
npm install --save-dev babel-plugin-syntax-async-functions
```

@@ -26,3 +37,3 @@

```sh
$ babel --plugins syntax-async-functions script.js
babel --plugins syntax-async-functions script.js
```

@@ -37,1 +48,5 @@

```
## References
* [Proposal: Async Functions for ECMAScript](https://github.com/tc39/ecmascript-asyncawait)
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