aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-primitive
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/is-primitive')
-rw-r--r--node_modules/is-primitive/LICENSE21
-rw-r--r--node_modules/is-primitive/README.md57
-rw-r--r--node_modules/is-primitive/index.js13
-rw-r--r--node_modules/is-primitive/package.json46
4 files changed, 137 insertions, 0 deletions
diff --git a/node_modules/is-primitive/LICENSE b/node_modules/is-primitive/LICENSE
new file mode 100644
index 000000000..fa30c4cb3
--- /dev/null
+++ b/node_modules/is-primitive/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2015, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/is-primitive/README.md b/node_modules/is-primitive/README.md
new file mode 100644
index 000000000..e1c306428
--- /dev/null
+++ b/node_modules/is-primitive/README.md
@@ -0,0 +1,57 @@
+# is-primitive [![NPM version](https://badge.fury.io/js/is-primitive.svg)](http://badge.fury.io/js/is-primitive) [![Build Status](https://travis-ci.org/jonschlinkert/is-primitive.svg)](https://travis-ci.org/jonschlinkert/is-primitive)
+
+> Returns `true` if the value is a primitive.
+
+## Install with [npm](npmjs.org)
+
+```bash
+npm i is-primitive --save
+```
+
+## Running tests
+Install dev dependencies.
+
+```bash
+npm i -d && npm test
+```
+
+## Usage
+
+```js
+var isPrimitive = require('is-primitive');
+isPrimitive('abc');
+//=> true
+
+isPrimitive(42);
+//=> true
+
+isPrimitive(false);
+//=> true
+
+isPrimitive(true);
+//=> true
+
+isPrimitive({});
+//=> false
+
+isPrimitive([]);
+//=> false
+
+isPrimitive(function(){});
+//=> false
+```
+
+## Author
+
+**Jon Schlinkert**
+
++ [github/jonschlinkert](https://github.com/jonschlinkert)
++ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+
+## License
+Copyright (c) 2014-2015 Jon Schlinkert
+Released under the MIT license
+
+***
+
+_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 16, 2015._ \ No newline at end of file
diff --git a/node_modules/is-primitive/index.js b/node_modules/is-primitive/index.js
new file mode 100644
index 000000000..55f11cf05
--- /dev/null
+++ b/node_modules/is-primitive/index.js
@@ -0,0 +1,13 @@
+/*!
+ * is-primitive <https://github.com/jonschlinkert/is-primitive>
+ *
+ * Copyright (c) 2014-2015, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+'use strict';
+
+// see http://jsperf.com/testing-value-is-primitive/7
+module.exports = function isPrimitive(value) {
+ return value == null || (typeof value !== 'function' && typeof value !== 'object');
+};
diff --git a/node_modules/is-primitive/package.json b/node_modules/is-primitive/package.json
new file mode 100644
index 000000000..b716f4ece
--- /dev/null
+++ b/node_modules/is-primitive/package.json
@@ -0,0 +1,46 @@
+{
+ "name": "is-primitive",
+ "description": "Returns `true` if the value is a primitive. ",
+ "version": "2.0.0",
+ "homepage": "https://github.com/jonschlinkert/is-primitive",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/jonschlinkert/is-primitive.git"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/is-primitive/issues"
+ },
+ "license": {
+ "type": "MIT",
+ "url": "https://github.com/jonschlinkert/is-primitive/blob/master/LICENSE"
+ },
+ "files": [
+ "index.js"
+ ],
+ "main": "index.js",
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "devDependencies": {
+ "mocha": "*",
+ "should": "^4.0.4"
+ },
+ "keywords": [
+ "boolean",
+ "check",
+ "number",
+ "primitive",
+ "string",
+ "symbol",
+ "type",
+ "typeof",
+ "util"
+ ]
+}