{"_id":"validate.io-positive-integer-array","_rev":"4-db9e05d7262543cba73ea9b3ea27c939","name":"validate.io-positive-integer-array","description":"Validates if a value is a positive integer array.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.0":{"name":"validate.io-positive-integer-array","version":"0.0.0","description":"Validates if a value is a positive integer array.","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-array.git"},"keywords":["validate.io","validate","validation","validator","valid","integer","positive","integerarray","array","is","isarray","isintegerarray"],"bugs":{"url":"https://github.com/validate-io/positive-integer-array/issues"},"dependencies":{"validate.io-array":"^1.0.3","validate.io-positive-integer":"^1.0.0"},"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":"d57ce93e7a192e125736da67e69f94eaf7e6c959","homepage":"https://github.com/validate-io/positive-integer-array#readme","_id":"validate.io-positive-integer-array@0.0.0","_shasum":"5f1b67e36f828ff31d2f895564a7418aca9d713f","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"5f1b67e36f828ff31d2f895564a7418aca9d713f","tarball":"https://registry.npmjs.org/validate.io-positive-integer-array/-/validate.io-positive-integer-array-0.0.0.tgz","integrity":"sha512-iCCmLKw0NlhHplUsGiwpWHLjXXAwdg3fpmsm/+pUtRHiaiHDQYMMKZwCHDv7Y3eiHMuJWzlXk/8ThGLLrgDh2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+thKbOe/hzhMR3yLwWTWTlGmbnCmzxCGnVyioxF783gIgJVNkun2bh4Kc/pEF7llJ4oOUoyIQrF/JljLlpKNnrZE="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"validate.io-positive-integer-array","version":"1.0.0","description":"Validates if a value is a positive integer array.","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-array.git"},"keywords":["validate.io","validate","validation","validator","valid","integer","positive","integerarray","array","is","isarray","isintegerarray"],"bugs":{"url":"https://github.com/validate-io/positive-integer-array/issues"},"dependencies":{"validate.io-array":"^1.0.3","validate.io-positive-integer":"^1.0.0"},"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":"e6e2a6ccdba4d030ae2364739b40b2e01428a9a7","homepage":"https://github.com/validate-io/positive-integer-array#readme","_id":"validate.io-positive-integer-array@1.0.0","_shasum":"501628fe4d07e18fd663133d9a19fe20aed2d77d","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"501628fe4d07e18fd663133d9a19fe20aed2d77d","tarball":"https://registry.npmjs.org/validate.io-positive-integer-array/-/validate.io-positive-integer-array-1.0.0.tgz","integrity":"sha512-LNjx7pL17NNVmEEB7L3FuVqoWCqQyteh7u88PjuuDNbJ3BeuQYBe7uNyOHJZNS8M/ZnJR5WaZkjFKmmHowIGEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCp/58esOCVTWKn55BN8lN1unEDdOE4yxW+ZOlftYWCywIgJEygCTNfEeR5ELFoXIvVeAgKAPbV4/4d/hV8OIv4qp8="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]}},"readme":"Positive Integer Array\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 array.\n\n\n## Installation\n\n``` bash\n$ npm install validate.io-positive-integer-array\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\n``` javascript\nvar isValid = require( 'validate.io-positive-integer-array' );\n```\n\n#### isValid( value )\n\nValidates if a `value` is a positive integer `array`.\n\n``` javascript\nvar value = [ 3, 1, 4, 2 ];\n\nvar bool = isValid( value );\n// returns true\n```\n\n__Note__: the method will return `false` for an empty `array`.\n\n\n## Examples\n\n``` javascript\nvar isValid = require( 'validate.io-positive-integer-array' );\n\nconsole.log( isValid( [3,1,4,2] ) );\n// returns true\n\nconsole.log( isValid( [3,1,0,2] ) );\n// returns false\n\nconsole.log( isValid( [] ) );\n// returns false\n\nconsole.log( isValid( [3.14] ) );\n// returns false\n\nconsole.log( isValid( [0,-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-positive-integer-array.svg\n[npm-url]: https://npmjs.org/package/validate.io-positive-integer-array\n\n[travis-image]: http://img.shields.io/travis/validate-io/positive-integer-array/master.svg\n[travis-url]: https://travis-ci.org/validate-io/positive-integer-array\n\n[coveralls-image]: https://img.shields.io/coveralls/validate-io/positive-integer-array/master.svg\n[coveralls-url]: https://coveralls.io/r/validate-io/positive-integer-array?branch=master\n\n[dependencies-image]: http://img.shields.io/david/validate-io/positive-integer-array.svg\n[dependencies-url]: https://david-dm.org/validate-io/positive-integer-array\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/validate-io/positive-integer-array.svg\n[dev-dependencies-url]: https://david-dm.org/dev/validate-io/positive-integer-array\n\n[github-issues-image]: http://img.shields.io/github/issues/validate-io/positive-integer-array.svg\n[github-issues-url]: https://github.com/validate-io/positive-integer-array/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-28T08:34:41.340Z","created":"2015-04-24T09:43:47.827Z","0.0.0":"2015-04-24T09:43:47.827Z","1.0.0":"2015-04-24T09:44:19.810Z"},"homepage":"https://github.com/validate-io/positive-integer-array#readme","keywords":["validate.io","validate","validation","validator","valid","integer","positive","integerarray","array","is","isarray","isintegerarray"],"repository":{"type":"git","url":"git://github.com/validate-io/positive-integer-array.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-array/issues"},"readmeFilename":"README.md"}