summaryrefslogtreecommitdiff
path: root/node_modules/babel-helper-is-void-0
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/babel-helper-is-void-0')
-rw-r--r--node_modules/babel-helper-is-void-0/README.md7
-rw-r--r--node_modules/babel-helper-is-void-0/lib/index.js11
-rw-r--r--node_modules/babel-helper-is-void-0/package.json14
3 files changed, 32 insertions, 0 deletions
diff --git a/node_modules/babel-helper-is-void-0/README.md b/node_modules/babel-helper-is-void-0/README.md
new file mode 100644
index 00000000..0cd829e9
--- /dev/null
+++ b/node_modules/babel-helper-is-void-0/README.md
@@ -0,0 +1,7 @@
+# babel-helper-is-void-0
+
+## Installation
+
+```sh
+npm install babel-helper-is-void-0 --save-dev
+```
diff --git a/node_modules/babel-helper-is-void-0/lib/index.js b/node_modules/babel-helper-is-void-0/lib/index.js
new file mode 100644
index 00000000..dfd5e46a
--- /dev/null
+++ b/node_modules/babel-helper-is-void-0/lib/index.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t) {
+ return function isVoid0(expr) {
+ return t.isUnaryExpression(expr, {
+ operator: "void"
+ }) && t.isNumericLiteral(expr.argument, {
+ value: 0
+ });
+ };
+}; \ No newline at end of file
diff --git a/node_modules/babel-helper-is-void-0/package.json b/node_modules/babel-helper-is-void-0/package.json
new file mode 100644
index 00000000..88c263a9
--- /dev/null
+++ b/node_modules/babel-helper-is-void-0/package.json
@@ -0,0 +1,14 @@
+{
+ "name": "babel-helper-is-void-0",
+ "version": "0.4.3",
+ "description": "",
+ "keywords": [
+ "babel-plugin"
+ ],
+ "homepage": "https://github.com/babel/minify#readme",
+ "bugs": "https://github.com/babel/minify/issues",
+ "license": "MIT",
+ "author": "amasad",
+ "main": "lib/index.js",
+ "repository": "https://github.com/babel/minify/tree/master/packages/babel-helper-is-void-0"
+}