summaryrefslogtreecommitdiffstats
path: root/node_modules/babel-plugin-syntax-async-functions
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/babel-plugin-syntax-async-functions')
-rw-r--r--node_modules/babel-plugin-syntax-async-functions/.npmignore3
-rw-r--r--node_modules/babel-plugin-syntax-async-functions/README.md35
-rw-r--r--node_modules/babel-plugin-syntax-async-functions/lib/index.js13
-rw-r--r--node_modules/babel-plugin-syntax-async-functions/package.json41
4 files changed, 92 insertions, 0 deletions
diff --git a/node_modules/babel-plugin-syntax-async-functions/.npmignore b/node_modules/babel-plugin-syntax-async-functions/.npmignore
new file mode 100644
index 0000000..cace0d6
--- /dev/null
+++ b/node_modules/babel-plugin-syntax-async-functions/.npmignore
@@ -0,0 +1,3 @@
+node_modules
+*.log
+src
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"]
+});
+```
diff --git a/node_modules/babel-plugin-syntax-async-functions/lib/index.js b/node_modules/babel-plugin-syntax-async-functions/lib/index.js
new file mode 100644
index 0000000..1d6660e
--- /dev/null
+++ b/node_modules/babel-plugin-syntax-async-functions/lib/index.js
@@ -0,0 +1,13 @@
+"use strict";
+
+exports.__esModule = true;
+
+exports.default = function () {
+ return {
+ manipulateOptions: function manipulateOptions(opts, parserOpts) {
+ parserOpts.plugins.push("asyncFunctions");
+ }
+ };
+};
+
+module.exports = exports["default"]; \ No newline at end of file
diff --git a/node_modules/babel-plugin-syntax-async-functions/package.json b/node_modules/babel-plugin-syntax-async-functions/package.json
new file mode 100644
index 0000000..0b4f872
--- /dev/null
+++ b/node_modules/babel-plugin-syntax-async-functions/package.json
@@ -0,0 +1,41 @@
+{
+ "_from": "babel-plugin-syntax-async-functions@^6.8.0",
+ "_id": "babel-plugin-syntax-async-functions@6.13.0",
+ "_inBundle": false,
+ "_integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=",
+ "_location": "/babel-plugin-syntax-async-functions",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "babel-plugin-syntax-async-functions@^6.8.0",
+ "name": "babel-plugin-syntax-async-functions",
+ "escapedName": "babel-plugin-syntax-async-functions",
+ "rawSpec": "^6.8.0",
+ "saveSpec": null,
+ "fetchSpec": "^6.8.0"
+ },
+ "_requiredBy": [
+ "/babel-plugin-transform-async-to-generator"
+ ],
+ "_resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz",
+ "_shasum": "cad9cad1191b5ad634bf30ae0872391e0647be95",
+ "_spec": "babel-plugin-syntax-async-functions@^6.8.0",
+ "_where": "/home/pruss/Dev/3-minute-website/node_modules/babel-plugin-transform-async-to-generator",
+ "bundleDependencies": false,
+ "dependencies": {},
+ "deprecated": false,
+ "description": "Allow parsing of async functions",
+ "devDependencies": {},
+ "keywords": [
+ "babel-plugin"
+ ],
+ "license": "MIT",
+ "main": "lib/index.js",
+ "name": "babel-plugin-syntax-async-functions",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-async-functions"
+ },
+ "version": "6.13.0"
+}