aboutsummaryrefslogtreecommitdiff
path: root/node_modules/minimalistic-assert
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/minimalistic-assert')
-rw-r--r--node_modules/minimalistic-assert/LICENSE13
-rw-r--r--node_modules/minimalistic-assert/index.js11
-rw-r--r--node_modules/minimalistic-assert/package.json19
-rw-r--r--node_modules/minimalistic-assert/readme.md4
4 files changed, 47 insertions, 0 deletions
diff --git a/node_modules/minimalistic-assert/LICENSE b/node_modules/minimalistic-assert/LICENSE
new file mode 100644
index 00000000..adca66b3
--- /dev/null
+++ b/node_modules/minimalistic-assert/LICENSE
@@ -0,0 +1,13 @@
+Copyright 2015 Calvin Metcalf
+
+Permission to use, copy, modify, and/or distribute this software for any purpose
+with or without fee is hereby granted, provided that the above copyright notice
+and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file
diff --git a/node_modules/minimalistic-assert/index.js b/node_modules/minimalistic-assert/index.js
new file mode 100644
index 00000000..70b4ea5b
--- /dev/null
+++ b/node_modules/minimalistic-assert/index.js
@@ -0,0 +1,11 @@
+module.exports = assert;
+
+function assert(val, msg) {
+ if (!val)
+ throw new Error(msg || 'Assertion failed');
+}
+
+assert.equal = function assertEqual(l, r, msg) {
+ if (l != r)
+ throw new Error(msg || ('Assertion failed: ' + l + ' != ' + r));
+};
diff --git a/node_modules/minimalistic-assert/package.json b/node_modules/minimalistic-assert/package.json
new file mode 100644
index 00000000..f8de10d9
--- /dev/null
+++ b/node_modules/minimalistic-assert/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "minimalistic-assert",
+ "version": "1.0.1",
+ "description": "minimalistic-assert ===",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/calvinmetcalf/minimalistic-assert.git"
+ },
+ "author": "",
+ "license": "ISC",
+ "bugs": {
+ "url": "https://github.com/calvinmetcalf/minimalistic-assert/issues"
+ },
+ "homepage": "https://github.com/calvinmetcalf/minimalistic-assert"
+}
diff --git a/node_modules/minimalistic-assert/readme.md b/node_modules/minimalistic-assert/readme.md
new file mode 100644
index 00000000..2ca0d256
--- /dev/null
+++ b/node_modules/minimalistic-assert/readme.md
@@ -0,0 +1,4 @@
+minimalistic-assert
+===
+
+very minimalistic assert module.