{"_id":"validate.io-positive-integer","_rev":"6-d18487c46f88d1d111f43d36b5527e93","name":"validate.io-positive-integer","description":"Validates if a value is a positive integer.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"validate.io-positive-integer","version":"0.0.0","description":"Validates if a value is a positive integer.","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/positive-integer.git"},"keywords":["validate.io","validate","validation","validator","valid","integer","positive","is","isinteger"],"bugs":{"url":"https://github.com/validate-io/positive-integer/issues"},"dependencies":{"validate.io-integer":"^1.0.5"},"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":"ea9d43e2737a4d341e53e66ff292eaa083cf9450","homepage":"https://github.com/validate-io/positive-integer","_id":"validate.io-positive-integer@0.0.0","_shasum":"4bbbded78a8ba3742c9417968c0fb5a1ae820b85","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"4bbbded78a8ba3742c9417968c0fb5a1ae820b85","tarball":"https://registry.npmjs.org/validate.io-positive-integer/-/validate.io-positive-integer-0.0.0.tgz","integrity":"sha512-47BhQXBQtEnZEMkJ/+gAsZNyzHmwdb3WtLPVe4MX7zU39W2QAiom1C0aXRFbfUi1o8lE+x77clEknXHDc6xSUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHg5VaIfQYuWiIgOcbrAE0NyW2LLg9+iai9m5uPesAcAIgQ/E9W+eRZg4+xm83sFa4tPVv85dbAnk0woNPakinHQU="}]}},"1.0.0":{"name":"validate.io-positive-integer","version":"1.0.0","description":"Validates if a value is a positive integer.","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/positive-integer.git"},"keywords":["validate.io","validate","validation","validator","valid","integer","positive","is","isinteger"],"bugs":{"url":"https://github.com/validate-io/positive-integer/issues"},"dependencies":{"validate.io-integer":"^1.0.5"},"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":"677230ae8380cc3df7b6c4aa3a9f63844bfcb348","homepage":"https://github.com/validate-io/positive-integer","_id":"validate.io-positive-integer@1.0.0","_shasum":"7ed2d03b4c27558cc66a00aab0f0e921814a6582","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"7ed2d03b4c27558cc66a00aab0f0e921814a6582","tarball":"https://registry.npmjs.org/validate.io-positive-integer/-/validate.io-positive-integer-1.0.0.tgz","integrity":"sha512-eg4LSdyqjICNUZWRilcQ5l+YayRlu6yi+GQsWw1bCmtG9yayOPmLa1fPymEHPPhbvWPAv3w0LLbCsf03pBHZkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFwdxQ0b0I8lEnfiV1dnVsMfQm0Zo6Hws278sTEpIo9NAiEAywzvuopv3+37KdPCxztBWmYW73s3JmP/yLqPHHyrgog="}]}}},"readme":"Positive Integer\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 positive integer.\n\n\n## Installation\n\n``` bash\n$ npm install validate.io-positive-integer\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\n``` javascript\nvar isPositiveInteger = require( 'validate.io-positive-integer' );\n```\n\n#### isPositiveInteger( value )\n\nValidates if a `value` is a positive `integer`.\n\n``` javascript\nvar value = 5;\n\nvar bool = isPositiveInteger( value );\n// returns true\n```\n\n\n## Examples\n\n``` javascript\nvar isPositiveInteger = require( 'validate.io-positive-integer' );\n\nconsole.log( isPositiveInteger( 5 ) );\n// returns true\n\nconsole.log( isPositiveInteger( 0 ) );\n// returns false\n\nconsole.log( isPositiveInteger( Math.PI ) );\n// returns false\n\nconsole.log( isPositiveInteger( -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-positive-integer.svg\n[npm-url]: https://npmjs.org/package/validate.io-positive-integer\n\n[travis-image]: http://img.shields.io/travis/validate-io/positive-integer/master.svg\n[travis-url]: https://travis-ci.org/validate-io/positive-integer\n\n[coveralls-image]: https://img.shields.io/coveralls/validate-io/positive-integer/master.svg\n[coveralls-url]: https://coveralls.io/r/validate-io/positive-integer?branch=master\n\n[dependencies-image]: http://img.shields.io/david/validate-io/positive-integer.svg\n[dependencies-url]: https://david-dm.org/validate-io/positive-integer\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/validate-io/positive-integer.svg\n[dev-dependencies-url]: https://david-dm.org/dev/validate-io/positive-integer\n\n[github-issues-image]: http://img.shields.io/github/issues/validate-io/positive-integer.svg\n[github-issues-url]: https://github.com/validate-io/positive-integer/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-28T08:34:38.334Z","created":"2015-02-23T01:05:39.030Z","0.0.0":"2015-02-23T01:05:39.030Z","1.0.0":"2015-02-23T01:05:55.223Z"},"homepage":"https://github.com/validate-io/positive-integer","keywords":["validate.io","validate","validation","validator","valid","integer","positive","is","isinteger"],"repository":{"type":"git","url":"git://github.com/validate-io/positive-integer.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/validate-io/positive-integer/issues"},"readmeFilename":"README.md"}