diff options
Diffstat (limited to 'node_modules/babel-plugin-syntax-async-functions/README.md')
-rw-r--r-- | node_modules/babel-plugin-syntax-async-functions/README.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/node_modules/babel-plugin-syntax-async-functions/README.md b/node_modules/babel-plugin-syntax-async-functions/README.md new file mode 100644 index 0000000..a2c13f5 --- /dev/null +++ b/node_modules/babel-plugin-syntax-async-functions/README.md @@ -0,0 +1,35 @@ +# babel-plugin-syntax-async-functions + +Allow parsing of async functions. + +## Installation + +```sh +$ npm install babel-plugin-syntax-async-functions +``` + +## Usage + +### Via `.babelrc` (Recommended) + +**.babelrc** + +```json +{ + "plugins": ["syntax-async-functions"] +} +``` + +### Via CLI + +```sh +$ babel --plugins syntax-async-functions script.js +``` + +### Via Node API + +```javascript +require("babel-core").transform("code", { + plugins: ["syntax-async-functions"] +}); +``` |