babel-plugin-syntax-async-functions
Advanced tools
Comparing version 6.13.0 to 7.0.0-alpha.1
@@ -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) |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
1350
51
8
2