aboutsummaryrefslogtreecommitdiff
path: root/node_modules/is-odd
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-08-14 05:01:11 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-08-14 05:02:09 +0200
commit363723fc84f7b8477592e0105aeb331ec9a017af (patch)
tree29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/is-odd
parent5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff)
node_modules
Diffstat (limited to 'node_modules/is-odd')
-rw-r--r--node_modules/is-odd/LICENSE21
-rw-r--r--node_modules/is-odd/README.md80
-rw-r--r--node_modules/is-odd/index.js20
-rw-r--r--node_modules/is-odd/package.json66
4 files changed, 187 insertions, 0 deletions
diff --git a/node_modules/is-odd/LICENSE b/node_modules/is-odd/LICENSE
new file mode 100644
index 000000000..83b56e709
--- /dev/null
+++ b/node_modules/is-odd/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015-2017, 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-odd/README.md b/node_modules/is-odd/README.md
new file mode 100644
index 000000000..514db35dc
--- /dev/null
+++ b/node_modules/is-odd/README.md
@@ -0,0 +1,80 @@
+# is-odd [![NPM version](https://img.shields.io/npm/v/is-odd.svg?style=flat)](https://www.npmjs.com/package/is-odd) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-odd.svg?style=flat)](https://npmjs.org/package/is-odd) [![NPM total downloads](https://img.shields.io/npm/dt/is-odd.svg?style=flat)](https://npmjs.org/package/is-odd) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-odd.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-odd)
+
+> Returns true if the given number is odd.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save is-odd
+```
+
+## Usage
+
+```js
+var isOdd = require('is-odd');
+
+isOdd(0);
+//=> false
+isOdd('1');
+//=> true
+isOdd(2);
+//=> false
+isOdd('3');
+//=> true
+```
+
+## About
+
+### Related projects
+
+* [exponential-moving-average](https://www.npmjs.com/package/exponential-moving-average): Calculate an exponential moving average from an array of numbers. | [homepage](https://github.com/jonschlinkert/exponential-moving-average "Calculate an exponential moving average from an array of numbers.")
+* [is-even](https://www.npmjs.com/package/is-even): Return true if the given number is even. | [homepage](https://github.com/jonschlinkert/is-even "Return true if the given number is even.")
+* [sma](https://www.npmjs.com/package/sma): Calculate the simple moving average of an array. | [homepage](https://github.com/doowb/sma "Calculate the simple moving average of an array.")
+
+### Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 8 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 2 | [noformnocontent](https://github.com/noformnocontent) |
+| 1 | [Semigradsky](https://github.com/Semigradsky) |
+
+### Building docs
+
+_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
+
+To generate the readme, run the following command:
+
+```sh
+$ npm install -g verbose/verb#dev verb-generate-readme && verb
+```
+
+### Running tests
+
+Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
+
+```sh
+$ npm install && npm test
+```
+
+### Author
+
+**Jon Schlinkert**
+
+* [github/jonschlinkert](https://github.com/jonschlinkert)
+* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
+
+### License
+
+Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT License](LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 27, 2017._ \ No newline at end of file
diff --git a/node_modules/is-odd/index.js b/node_modules/is-odd/index.js
new file mode 100644
index 000000000..c8950c17b
--- /dev/null
+++ b/node_modules/is-odd/index.js
@@ -0,0 +1,20 @@
+/*!
+ * is-odd <https://github.com/jonschlinkert/is-odd>
+ *
+ * Copyright (c) 2015-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+'use strict';
+
+var isNumber = require('is-number');
+
+module.exports = function isOdd(i) {
+ if (!isNumber(i)) {
+ throw new TypeError('is-odd expects a number.');
+ }
+ if (Number(i) !== Math.floor(i)) {
+ throw new RangeError('is-odd expects an integer.');
+ }
+ return !!(~~i & 1);
+};
diff --git a/node_modules/is-odd/package.json b/node_modules/is-odd/package.json
new file mode 100644
index 000000000..939355433
--- /dev/null
+++ b/node_modules/is-odd/package.json
@@ -0,0 +1,66 @@
+{
+ "name": "is-odd",
+ "description": "Returns true if the given number is odd.",
+ "version": "1.0.0",
+ "homepage": "https://github.com/jonschlinkert/is-odd",
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
+ "contributors": [
+ "Dmitry Semigradsky (http://brainstorage.me/semigradsky)",
+ "DYM (http://dym.sh)",
+ "Jon Schlinkert (http://twitter.com/jonschlinkert)"
+ ],
+ "repository": "jonschlinkert/is-odd",
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/is-odd/issues"
+ },
+ "license": "MIT",
+ "files": [
+ "index.js"
+ ],
+ "main": "index.js",
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "dependencies": {
+ "is-number": "^3.0.0"
+ },
+ "devDependencies": {
+ "gulp-format-md": "^0.1.11",
+ "mocha": "^3.2.0"
+ },
+ "keywords": [
+ "array",
+ "count",
+ "even",
+ "filter",
+ "integer",
+ "is",
+ "math",
+ "numeric",
+ "odd",
+ "string"
+ ],
+ "verb": {
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "exponential-moving-average",
+ "is-even",
+ "sma"
+ ]
+ },
+ "lint": {
+ "reflinks": true
+ }
+ }
+}