{"_id":"validate.io-nan-primitive","_rev":"4-ca074401f741eea1c3a1fa3452334c96","name":"validate.io-nan-primitive","description":"Validates if a value is a NaN primitive.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"validate.io-nan-primitive","version":"0.0.0","description":"Validates if a value is a NaN primitive.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"mocha","test-cov":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coverage -- -R spec","coveralls":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coveralls/coverage --report lcovonly -- -R spec && cat ./reports/coveralls/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./reports/coveralls"},"main":"./lib","repository":{"type":"git","url":"git://github.com/validate-io/nan-primitive.git"},"keywords":["validate.io","validate","validation","validator","valid","number","numeric","non-numeric","nan","is","isnan","type","check"],"bugs":{"url":"https://github.com/validate-io/nan-primitive/issues"},"dependencies":{},"devDependencies":{"chai":"2.x.x","mocha":"2.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"2.x.x","jshint-stylish":"^1.0.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"57a53d5dd21cf2ebecf5d0af491930c43cfe16fe","homepage":"https://github.com/validate-io/nan-primitive","_id":"validate.io-nan-primitive@0.0.0","_shasum":"f07525f33a163fd65862bd61a482b6d3b69b3f03","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"f07525f33a163fd65862bd61a482b6d3b69b3f03","tarball":"https://registry.npmjs.org/validate.io-nan-primitive/-/validate.io-nan-primitive-0.0.0.tgz","integrity":"sha512-DK29LefdBzZdWUITqqAzQxjWzbNAr7dN+yBCc/L3Y6cIH6czdXgWdPd1MyTZkdDItlZZcUUFLxH9h1ou6uKY8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBXchUmFYe0HIqMKSx+zzM85pPhHwgz4icXCIquSWAWPAiEAnzohfdDlOCl5cZYnW9sQppXXm/cmmny7sKADyooTYGE="}]}},"1.0.0":{"name":"validate.io-nan-primitive","version":"1.0.0","description":"Validates if a value is a NaN primitive.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"mocha","test-cov":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coverage -- -R spec","coveralls":"istanbul cover ./node_modules/.bin/_mocha --dir ./reports/coveralls/coverage --report lcovonly -- -R spec && cat ./reports/coveralls/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./reports/coveralls"},"main":"./lib","repository":{"type":"git","url":"git://github.com/validate-io/nan-primitive.git"},"keywords":["validate.io","validate","validation","validator","valid","number","numeric","non-numeric","nan","is","isnan","type","check"],"bugs":{"url":"https://github.com/validate-io/nan-primitive/issues"},"dependencies":{},"devDependencies":{"chai":"2.x.x","mocha":"2.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"2.x.x","jshint-stylish":"^1.0.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"095aafbf668a8ac22e1febaa1de958746a4bcd2d","homepage":"https://github.com/validate-io/nan-primitive","_id":"validate.io-nan-primitive@1.0.0","_shasum":"475cc2d035d0baf2d009122d83ea291a32d7fb0c","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"475cc2d035d0baf2d009122d83ea291a32d7fb0c","tarball":"https://registry.npmjs.org/validate.io-nan-primitive/-/validate.io-nan-primitive-1.0.0.tgz","integrity":"sha512-UgKsINy9anALqrWfSM6tU2lZQwk8DGbSS3Nt6EC8cZ8bqTYVlL1Sb8a/ulqSvhfKLiyd3JC5yW6G1GyuYl8H6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEf6PEK8Z/xwBEUjW8s38nUv59WbEjY8JiimGMFqBfLQAiB+lOd9rd32WFtQ7dcErwWpp0FCuiNEKgDXIWIr0uAjzQ=="}]}}},"readme":"nan-primitive\n===\n[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Dependencies][dependencies-image]][dependencies-url]\n\n> Validates if a value is a NaN primitive.\n\n\n## Installation\n\n``` bash\n$ npm install validate.io-nan-primitive\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\n``` javascript\nvar isnan = require( 'validate.io-nan-primitive' );\n```\n\n#### isnan( value )\n\nValidates if a `value` is a `NaN` primitive.\n\n``` javascript\nvar value = NaN;\n\nvar bool = isnan( value );\n// returns true\n```\n\n__Note__: the method first validates that a `value` is `numeric` before validating if a `value` is `NaN`. For non-numeric values, the method returns `false`.\n\n\n## Examples\n\n``` javascript\nvar isnan = require( 'validate.io-nan-primitive' );\n\nconsole.log( isnan( NaN ) );\n// returns true\n\nconsole.log( isnan( new Number( NaN ) ) );\n// returns false\n\nconsole.log( isnan( '5' ) );\n// returns false\n\nconsole.log( isnan( 5 ) );\n// returns false\n```\n\nTo run the example code from the top-level application directory,\n\n``` bash\n$ node ./examples/index.js\n```\n\n\n## Tests\n\n### Unit\n\nUnit tests use the [Mocha](http://mochajs.org) test framework with [Chai](http://chaijs.com) assertions. To run the tests, execute the following command in the top-level application directory:\n\n``` bash\n$ make test\n```\n\nAll new feature development should have corresponding unit tests to validate correct functionality.\n\n\n### Test Coverage\n\nThis repository uses [Istanbul](https://github.com/gotwarlost/istanbul) as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-cov\n```\n\nIstanbul creates a `./reports/coverage` directory. To access an HTML version of the report,\n\n``` bash\n$ make view-cov\n```\n\n\n---\n## License\n\n[MIT license](http://opensource.org/licenses/MIT). \n\n\n## Copyright\n\nCopyright &copy; 2015. Athan Reines.\n\n\n[npm-image]: http://img.shields.io/npm/v/validate.io-nan-primitive.svg\n[npm-url]: https://npmjs.org/package/validate.io-nan-primitive\n\n[travis-image]: http://img.shields.io/travis/validate-io/nan-primitive/master.svg\n[travis-url]: https://travis-ci.org/validate-io/nan-primitive\n\n[coveralls-image]: https://img.shields.io/coveralls/validate-io/nan-primitive/master.svg\n[coveralls-url]: https://coveralls.io/r/validate-io/nan-primitive?branch=master\n\n[dependencies-image]: http://img.shields.io/david/validate-io/nan-primitive.svg\n[dependencies-url]: https://david-dm.org/validate-io/nan-primitive\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/validate-io/nan-primitive.svg\n[dev-dependencies-url]: https://david-dm.org/dev/validate-io/nan-primitive\n\n[github-issues-image]: http://img.shields.io/github/issues/validate-io/nan-primitive.svg\n[github-issues-url]: https://github.com/validate-io/nan-primitive/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-28T08:33:26.309Z","created":"2015-04-02T02:17:09.593Z","0.0.0":"2015-04-02T02:17:09.593Z","1.0.0":"2015-04-02T02:17:29.224Z"},"homepage":"https://github.com/validate-io/nan-primitive","keywords":["validate.io","validate","validation","validator","valid","number","numeric","non-numeric","nan","is","isnan","type","check"],"repository":{"type":"git","url":"git://github.com/validate-io/nan-primitive.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/validate-io/nan-primitive/issues"},"readmeFilename":"README.md"}