{"_id":"validate.io-nonnegative","_rev":"6-86ef07dde3a02b08677bf4c7df206c85","name":"validate.io-nonnegative","description":"Validates if a value is a nonnegative number.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"validate.io-nonnegative","version":"0.0.0","description":"Validates if a value is a nonnegative number.","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/nonnegative.git"},"keywords":["validate.io","validate","validation","validator","valid","number","nonnegative","is","isnumber"],"bugs":{"url":"https://github.com/validate-io/nonnegative/issues"},"dependencies":{"validate.io-number":"^1.0.3"},"devDependencies":{"chai":"1.x.x","mocha":"1.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":"fb1152af447637b44b365d0e85ca78ef544b3817","homepage":"https://github.com/validate-io/nonnegative","_id":"validate.io-nonnegative@0.0.0","_shasum":"a64417bebfb5e7db02c540229f8269701ad12f01","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"a64417bebfb5e7db02c540229f8269701ad12f01","tarball":"https://registry.npmjs.org/validate.io-nonnegative/-/validate.io-nonnegative-0.0.0.tgz","integrity":"sha512-OmHEj+GkEWXLfQ0fqRg+Ocii2D/8WCExRabXwS/Q0xVj2AQXdscI+KOEMxf6fxyAAINjUDaG3Xgz94nGE+na6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0GbNa8cXWKvkZp51GyLmC/9+484hwpuG2XU8cV0mgNAIhAPSb6m7V8BhvmKWSg98N5oUYeDxzSTsl3gtCUacJFScA"}]}},"1.0.0":{"name":"validate.io-nonnegative","version":"1.0.0","description":"Validates if a value is a nonnegative number.","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/nonnegative.git"},"keywords":["validate.io","validate","validation","validator","valid","number","nonnegative","is","isnumber"],"bugs":{"url":"https://github.com/validate-io/nonnegative/issues"},"dependencies":{"validate.io-number":"^1.0.3"},"devDependencies":{"chai":"1.x.x","mocha":"1.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":"fcb02a7f8eade1a38c2becdda373903248ee71a1","homepage":"https://github.com/validate-io/nonnegative","_id":"validate.io-nonnegative@1.0.0","_shasum":"021996bc5ddf5d97f7c40dff4b4335a49e8420cb","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"021996bc5ddf5d97f7c40dff4b4335a49e8420cb","tarball":"https://registry.npmjs.org/validate.io-nonnegative/-/validate.io-nonnegative-1.0.0.tgz","integrity":"sha512-a421LvpmpTce9hKEKuuhGP3r/p6lo5REh6ii3SNMPhvtSMJfXBuZnzB2AtkU7kjQwEn4RunN+K2B1mYFDfbSew==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFB6cLSYpC2WNtDOfd0Ybp1caFaf4Xe3b0U9NfC/5eZdAiASOa1JKo3qs6Jo7KL/PCrc/cy7VrAbeh8xStBIuZc0ug=="}]}}},"readme":"Nonnegative\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 nonnegative number.\n\n\n## Installation\n\n``` bash\n$ npm install validate.io-nonnegative\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\n``` javascript\nvar isNonNegative = require( 'validate.io-nonnegative' );\n```\n\n#### isNonNegative( value )\n\nValidates if a `value` is a nonnegative `number`.\n\n``` javascript\nvar value = Math.PI;\n\nvar bool = isNonNegative( value );\n// returns true\n```\n\n\n## Examples\n\n``` javascript\nvar isNonNegative = require( 'validate.io-nonnegative' );\n\nconsole.log( isNonNegative( Math.PI ) );\n// returns true\n\nconsole.log( isNonNegative( 0 ) );\n// returns true\n\nconsole.log( isNonNegative( -1 ) );\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-nonnegative.svg\n[npm-url]: https://npmjs.org/package/validate.io-nonnegative\n\n[travis-image]: http://img.shields.io/travis/validate-io/nonnegative/master.svg\n[travis-url]: https://travis-ci.org/validate-io/nonnegative\n\n[coveralls-image]: https://img.shields.io/coveralls/validate-io/nonnegative/master.svg\n[coveralls-url]: https://coveralls.io/r/validate-io/nonnegative?branch=master\n\n[dependencies-image]: http://img.shields.io/david/validate-io/nonnegative.svg\n[dependencies-url]: https://david-dm.org/validate-io/nonnegative\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/validate-io/nonnegative.svg\n[dev-dependencies-url]: https://david-dm.org/dev/validate-io/nonnegative\n\n[github-issues-image]: http://img.shields.io/github/issues/validate-io/nonnegative.svg\n[github-issues-url]: https://github.com/validate-io/nonnegative/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-28T08:33:47.691Z","created":"2015-02-23T03:50:34.054Z","0.0.0":"2015-02-23T03:50:34.054Z","1.0.0":"2015-02-23T03:50:52.115Z"},"homepage":"https://github.com/validate-io/nonnegative","keywords":["validate.io","validate","validation","validator","valid","number","nonnegative","is","isnumber"],"repository":{"type":"git","url":"git://github.com/validate-io/nonnegative.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/validate-io/nonnegative/issues"},"readmeFilename":"README.md"}