127 lines
6.2 KiB
JSON
127 lines
6.2 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "is-number@^2.1.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "is-number",
|
||
|
"name": "is-number",
|
||
|
"rawSpec": "^2.1.0",
|
||
|
"spec": ">=2.1.0 <3.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/fill-range"
|
||
|
]
|
||
|
],
|
||
|
"_from": "is-number@>=2.1.0 <3.0.0",
|
||
|
"_id": "is-number@2.1.0",
|
||
|
"_inCache": true,
|
||
|
"_location": "/is-number",
|
||
|
"_nodeVersion": "5.0.0",
|
||
|
"_npmUser": {
|
||
|
"name": "jonschlinkert",
|
||
|
"email": "github@sellside.com"
|
||
|
},
|
||
|
"_npmVersion": "3.3.6",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "is-number@^2.1.0",
|
||
|
"scope": null,
|
||
|
"escapedName": "is-number",
|
||
|
"name": "is-number",
|
||
|
"rawSpec": "^2.1.0",
|
||
|
"spec": ">=2.1.0 <3.0.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/fill-range"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz",
|
||
|
"_shasum": "01fcbbb393463a548f2f466cce16dece49db908f",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "is-number@^2.1.0",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/fill-range",
|
||
|
"author": {
|
||
|
"name": "Jon Schlinkert",
|
||
|
"url": "https://github.com/jonschlinkert"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/jonschlinkert/is-number/issues"
|
||
|
},
|
||
|
"dependencies": {
|
||
|
"kind-of": "^3.0.2"
|
||
|
},
|
||
|
"description": "Returns true if the value is a number. comprehensive tests.",
|
||
|
"devDependencies": {
|
||
|
"benchmarked": "^0.1.3",
|
||
|
"chalk": "^0.5.1",
|
||
|
"mocha": "*"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "01fcbbb393463a548f2f466cce16dece49db908f",
|
||
|
"tarball": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">=0.10.0"
|
||
|
},
|
||
|
"files": [
|
||
|
"index.js"
|
||
|
],
|
||
|
"gitHead": "d06c6e2cc048d3cad016cb8dfb055bb14d86fffa",
|
||
|
"homepage": "https://github.com/jonschlinkert/is-number",
|
||
|
"keywords": [
|
||
|
"check",
|
||
|
"coerce",
|
||
|
"coercion",
|
||
|
"integer",
|
||
|
"is",
|
||
|
"is number",
|
||
|
"is-number",
|
||
|
"istype",
|
||
|
"kind of",
|
||
|
"math",
|
||
|
"number",
|
||
|
"test",
|
||
|
"type",
|
||
|
"typeof",
|
||
|
"value"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "jonschlinkert",
|
||
|
"email": "github@sellside.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "doowb",
|
||
|
"email": "brian.woodward@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "is-number",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# is-number [![NPM version](https://badge.fury.io/js/is-number.svg)](http://badge.fury.io/js/is-number) [![Build Status](https://travis-ci.org/jonschlinkert/is-number.svg)](https://travis-ci.org/jonschlinkert/is-number)\n\n> Returns true if the value is a number. comprehensive tests.\n\nTo understand some of the rationale behind the decisions made in this library (and to learn about some oddities of number evaluation in JavaScript), [see this gist](https://gist.github.com/jonschlinkert/e30c70c713da325d0e81).\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i is-number --save\n```\n\n## Usage\n\n```js\nvar isNumber = require('is-number');\n```\n\n### true\n\nSee the [tests](./test.js) for more examples.\n\n```js\nisNumber(5e3) //=> 'true'\nisNumber(0xff) //=> 'true'\nisNumber(-1.1) //=> 'true'\nisNumber(0) //=> 'true'\nisNumber(1) //=> 'true'\nisNumber(1.1) //=> 'true'\nisNumber(10) //=> 'true'\nisNumber(10.10) //=> 'true'\nisNumber(100) //=> 'true'\nisNumber('-1.1') //=> 'true'\nisNumber('0') //=> 'true'\nisNumber('012') //=> 'true'\nisNumber('0xff') //=> 'true'\nisNumber('1') //=> 'true'\nisNumber('1.1') //=> 'true'\nisNumber('10') //=> 'true'\nisNumber('10.10') //=> 'true'\nisNumber('100') //=> 'true'\nisNumber('5e3') //=> 'true'\nisNumber(parseInt('012')) //=> 'true'\nisNumber(parseFloat('012')) //=> 'true'\n```\n\n### False\n\nSee the [tests](./test.js) for more examples.\n\n```js\nisNumber('foo') //=> 'false'\nisNumber([1]) //=> 'false'\nisNumber([]) //=> 'false'\nisNumber(function () {}) //=> 'false'\nisNumber(Infinity) //=> 'false'\nisNumber(NaN) //=> 'false'\nisNumber(new Array('abc')) //=> 'false'\nisNumber(new Array(2)) //=> 'false'\nisNumber(new Buffer('abc')) //=> 'false'\nisNumber(null) //=> 'false'\nisNumber(undefined) //=> 'false'\nisNumber({abc: 'abc'}) //=> 'false'\n```\n\n## Other projects\n\n* [even](https://www.npmjs.com/package/even): Get the even numbered items from an array. | [homepage](https://github.com/jonschlinkert/even)\n* [is-even](https://www.npmjs.com/package/is-even): Return true if the given number is even. | [homepage](https://github.com/jonschlinkert/is-even)\n* [is-odd](https://www.npmjs.com/package/is-odd): Returns true if the given number is odd. | [homepage](https://github.com/jonschlinkert/is-odd)\n* [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive)\n* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of)\n* [odd](https://www.npmjs.com/package/odd): Get the odd numbered items from an array. | [homepage](https://github.com/jonschlinkert/odd)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-number/issues/new).\n\n## Run tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 22, 2015._",
|
||
|
"readmeFilename": "README.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git+https://github.com/jonschlinkert/is-number.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "mocha"
|
||
|
},
|
||
|
"verb": {
|
||
|
"related": {
|
||
|
"list": [
|
||
|
"kind-of",
|
||
|
"is-primitive",
|
||
|
"even",
|
||
|
"odd",
|
||
|
"is-even",
|
||
|
"is-odd"
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
"version": "2.1.0"
|
||
|
}
|