aboutsummaryrefslogtreecommitdiff
path: root/node_modules/regenerator-runtime
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-03 15:35:00 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-03 15:35:00 +0200
commitde98e0b232509d5f40c135d540a70e415272ff85 (patch)
treea79222a5b58484ab3b80d18efcaaa7ccc4769b33 /node_modules/regenerator-runtime
parente0c9d480a73fa629c1e4a47d3e721f1d2d345406 (diff)
node_modules
Diffstat (limited to 'node_modules/regenerator-runtime')
-rw-r--r--node_modules/regenerator-runtime/.npmignore2
-rw-r--r--node_modules/regenerator-runtime/README.md31
2 files changed, 33 insertions, 0 deletions
diff --git a/node_modules/regenerator-runtime/.npmignore b/node_modules/regenerator-runtime/.npmignore
new file mode 100644
index 000000000..e216ae5e1
--- /dev/null
+++ b/node_modules/regenerator-runtime/.npmignore
@@ -0,0 +1,2 @@
+/node_modules
+/test
diff --git a/node_modules/regenerator-runtime/README.md b/node_modules/regenerator-runtime/README.md
new file mode 100644
index 000000000..d93386a30
--- /dev/null
+++ b/node_modules/regenerator-runtime/README.md
@@ -0,0 +1,31 @@
+# regenerator-runtime
+
+Standalone runtime for
+[Regenerator](https://github.com/facebook/regenerator)-compiled generator
+and `async` functions.
+
+To import the runtime as a module (recommended), either of the following
+import styles will work:
+```js
+// CommonJS
+const regeneratorRuntime = require("regenerator-runtime");
+
+// ECMAScript 2015
+import regeneratorRuntime from "regenerator-runtime";
+```
+
+To ensure that `regeneratorRuntime` is defined globally, either of the
+following styles will work:
+```js
+// CommonJS
+require("regenerator-runtime/runtime");
+
+// ECMAScript 2015
+import "regenerator-runtime/runtime";
+```
+
+To get the absolute file system path of `runtime.js`, evaluate the
+following expression:
+```js
+require("regenerator-runtime/path").path
+```