[Pkg-javascript-commits] [node-generator-supported] 01/02: Imported Upstream version 0.0.1
Thorsten Alteholz
alteholz at moszumanska.debian.org
Sun Mar 27 15:33:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
alteholz pushed a commit to branch master
in repository node-generator-supported.
commit f3bde9ecf9f6f29353af216e193fbff338cfb396
Author: Thorsten Alteholz <debian at alteholz.de>
Date: Sun Mar 27 17:33:54 2016 +0200
Imported Upstream version 0.0.1
---
README.md | 5 +++++
index.js | 6 ++++++
package.json | 23 +++++++++++++++++++++++
3 files changed, 34 insertions(+)
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..824dbc9
--- /dev/null
+++ b/README.md
@@ -0,0 +1,5 @@
+# generator-supported
+
+
+ npm install generator-supported
+ require('generator-supported') // true or false
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..b4d8b5b
--- /dev/null
+++ b/index.js
@@ -0,0 +1,6 @@
+try {
+ eval('(function* () {})()');
+ module.exports = true;
+} catch (e) {
+ module.exports = false;
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..e0cea0e
--- /dev/null
+++ b/package.json
@@ -0,0 +1,23 @@
+{
+ "name": "generator-supported",
+ "version": "0.0.1",
+ "description": "Check if JS harmony generators is supported in environment",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git at github.com:amasad/generator-supported.git"
+ },
+ "keywords": [
+ "generator",
+ "harmony",
+ "yield"
+ ],
+ "author": "amasad",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/amasad/generator-supported/issues"
+ }
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-generator-supported.git
More information about the Pkg-javascript-commits
mailing list