{"_id":"validate.io-integer","_rev":"16-f3c9ca61edc80de0fe8960fa61542f94","name":"validate.io-integer","description":"Validates if a value is an integer.","dist-tags":{"latest":"1.0.5"},"versions":{"0.0.0":{"name":"validate.io-integer","version":"0.0.0","description":"Validates if a value is an 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/integer.git"},"keywords":["validate.io","validate","validation","validator"],"bugs":{"url":"https://github.com/validate-io/integer/issues"},"dependencies":{},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"82e8b7ea1471fc26bb9ec84fbeeeb43ff7294cd4","homepage":"https://github.com/validate-io/integer","_id":"validate.io-integer@0.0.0","_shasum":"a857ffcf25b192cfd6c7a9abeac3ef117372789a","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"a857ffcf25b192cfd6c7a9abeac3ef117372789a","tarball":"https://registry.npmjs.org/validate.io-integer/-/validate.io-integer-0.0.0.tgz","integrity":"sha512-t+FPXpc2kQNBw4Yl88kpGgMXMQ7glIpQ+IK4QbITy1QWXOjsqCaGnGxb6B0ocl184nzgryjlkfPwlGJyLL8l5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+UK9zzoO1/OnRe4SQhCrgtPVl4X4sHfPWANJq5VnWxgIhAOI/pzFCITb8GfOhnn99PNeXLpDLrpdwM/hQ6M5QoD0Z"}]}},"1.0.0":{"name":"validate.io-integer","version":"1.0.0","description":"Validates if a value is an 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/integer.git"},"keywords":["validate.io","validate","validation","validator"],"bugs":{"url":"https://github.com/validate-io/integer/issues"},"dependencies":{},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"dc0087039d3f7b8875833d80adbebbe6aeb71853","homepage":"https://github.com/validate-io/integer","_id":"validate.io-integer@1.0.0","_shasum":"f2c03e5c5d8d342813e9303f9fb6f768fe2268bb","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"f2c03e5c5d8d342813e9303f9fb6f768fe2268bb","tarball":"https://registry.npmjs.org/validate.io-integer/-/validate.io-integer-1.0.0.tgz","integrity":"sha512-5Etu9MUSvBfkuFCGPqAVwFKS9kdcyThboBGzYERdxx42AkcaJ79EuAAt+BGofNki8eduLqz7TtKTtooad0NDOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUS6CZkSezL4S+EQRZbNh5FzpnRtPjvDmE+Y/BmATfsAiBq3clU9A7R+zRhikTQ/PyROi8c0Y6PhpS6C3A8Kr3qpQ=="}]}},"1.0.1":{"name":"validate.io-integer","version":"1.0.1","description":"Validates if a value is an 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/integer.git"},"keywords":["validate.io","validate","validation","validator"],"bugs":{"url":"https://github.com/validate-io/integer/issues"},"dependencies":{},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"651099c4610743b3fd7d842d283d2225e79651bd","homepage":"https://github.com/validate-io/integer","_id":"validate.io-integer@1.0.1","_shasum":"381d0561b7302eb12fea5604b7c3ff9098aafea8","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"381d0561b7302eb12fea5604b7c3ff9098aafea8","tarball":"https://registry.npmjs.org/validate.io-integer/-/validate.io-integer-1.0.1.tgz","integrity":"sha512-Ka8576KzjUTdECiwTKFUZPsLlC/NIikXNcKGCcYbA7VlOAxrF6g6d7EmFAdx2DccmUabPst8U5tgZl/zvbOkiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGo9Mhok2nTc9s8IN0IAckxMpJxUokAQQlkuLITxCjQCAiAClJaPAxjhlY2vKJIGnpkMY+xY5RY8B6+UuAwu+iBsyQ=="}]}},"1.0.2":{"name":"validate.io-integer","version":"1.0.2","description":"Validates if a value is an 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/integer.git"},"keywords":["validate.io","validate","validation","validator","integer"],"bugs":{"url":"https://github.com/validate-io/integer/issues"},"dependencies":{},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"91756d22834841050025ccb6a4c974e7f31970a3","homepage":"https://github.com/validate-io/integer","_id":"validate.io-integer@1.0.2","_shasum":"0d8cbff8078eea55dacda02118344901d15734c6","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"0d8cbff8078eea55dacda02118344901d15734c6","tarball":"https://registry.npmjs.org/validate.io-integer/-/validate.io-integer-1.0.2.tgz","integrity":"sha512-1gv1Jwr8tbe/dS7T6h4U1Ijmud3yKmPy9oBP6aPzrkPiyPtw25bZGeiAfycholh8GpmwSebI2pYO4PNZrekpkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHKU4+mRV2IikJnkEtt+M4Y7KsU16ipKDMLtGM2Jamq2AiBvZxseAGl7m4A3UHpFkPcIGreoN9k+85AC6aPPEmbRGg=="}]}},"1.0.3":{"name":"validate.io-integer","version":"1.0.3","description":"Validates if a value is an 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/integer.git"},"keywords":["validate.io","validate","validation","validator","number","numeric","integer"],"bugs":{"url":"https://github.com/validate-io/integer/issues"},"dependencies":{"validate.io-number":"^1.0.1"},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"^2.5.10","jshint-stylish":"^1.0.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"9c209236d920c26a8c9fbc41357584f9fe1915c0","homepage":"https://github.com/validate-io/integer","_id":"validate.io-integer@1.0.3","_shasum":"b7458c17b71a765852bb7da1d3ba2e1e60f0432b","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"b7458c17b71a765852bb7da1d3ba2e1e60f0432b","tarball":"https://registry.npmjs.org/validate.io-integer/-/validate.io-integer-1.0.3.tgz","integrity":"sha512-RlrZ/+nO4K11zI2CGKQ50fMYSrRCLD2hmlSQAcvfu7MWEFyFcZgBgFpenPsjgdoz2SZwuKPzcAFGbM3ZFiEVQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDj6HVB0Baev5uAe1ZIBQSeplh0WuuRX9i6OmBNsRkwdAiEAwQV/0cDbXTN8S2QR/Pz01rUJxhaQBJGlYLq+Acn9rYc="}]}},"1.0.4":{"name":"validate.io-integer","version":"1.0.4","description":"Validates if a value is an 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/integer.git"},"keywords":["validate.io","validate","validation","validator","number","numeric","integer","is","isinteger","type","check"],"bugs":{"url":"https://github.com/validate-io/integer/issues"},"dependencies":{"validate.io-number":"^1.0.1"},"devDependencies":{"chai":"1.x.x","mocha":"1.x.x","coveralls":"^2.11.1","istanbul":"^0.3.0","jshint":"^2.5.10","jshint-stylish":"^1.0.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"dbc18fd7126f671ad703e0c2e1a53f89c33bd61d","homepage":"https://github.com/validate-io/integer","_id":"validate.io-integer@1.0.4","_shasum":"ebb2ad84773f80bb22c0dd08b2a1fcb2ba7fb761","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"ebb2ad84773f80bb22c0dd08b2a1fcb2ba7fb761","tarball":"https://registry.npmjs.org/validate.io-integer/-/validate.io-integer-1.0.4.tgz","integrity":"sha512-+5DD2/wF97mHFGJDk8ZVkpVf6smkA+jf9HeHINfpEYFeUYL8Y9/CyrFO6Wp3CVPcvqc3e0J66Qw2yzFh2KyPSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwFJEfHHZxWlPY/F+8OQvg/Met6EiHgQCCJS9RSq/vAAIhANN9yXzgDkTjoWh/sdpcbKtPbi6nyYuz1IxkgQMnNMJ1"}]}},"1.0.5":{"name":"validate.io-integer","version":"1.0.5","description":"Validates if a value is an 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/integer.git"},"keywords":["validate.io","validate","validation","validator","number","numeric","integer","is","isinteger","type","check"],"bugs":{"url":"https://github.com/validate-io/integer/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.5.10","jshint-stylish":"^1.0.0"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"gitHead":"480731b649ebb39742fef10f53c1262e654ccb52","homepage":"https://github.com/validate-io/integer","_id":"validate.io-integer@1.0.5","_shasum":"168496480b95be2247ec443f2233de4f89878068","_from":".","_npmVersion":"1.5.0-alpha-1","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"dist":{"shasum":"168496480b95be2247ec443f2233de4f89878068","tarball":"https://registry.npmjs.org/validate.io-integer/-/validate.io-integer-1.0.5.tgz","integrity":"sha512-22izsYSLojN/P6bppBqhgUDjCkr5RY2jd+N2a3DCAUey8ydvrZ/OkGvFPR7qfOpwR2LC5p4Ngzxz36g5Vgr/hQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDe6vDCPqZOaOcz+4zW8zEKir/LTyHHlIEhgLQzO5x1iwIhAL3cWmrlqrYRmEYVwJ/k6pYzniieI0H1qXGJgQVLKuIr"}]}}},"readme":"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 an integer.\n\n\n## Installation\n\n``` bash\n$ npm install validate.io-integer\n```\n\nFor use in the browser, use [browserify](https://github.com/substack/node-browserify).\n\n\n## Usage\n\n``` javascript\nvar isInteger = require( 'validate.io-integer' );\n```\n\n\n#### isInteger( value )\n\nValidates if a value is an `integer`.\n\n``` javascript\nvar value = 5;\n\nvar bool = isInteger( value );\n// returns true\n```\n\n__Note__: this method validates that a value is `numeric` __before__ determining if the `value` is an `integer`. For non-numeric values, the method returns `false`.\n\n\n## Examples\n\n``` javascript\nvar bool;\n\nbool = isInteger( 5 );\n// returns true\n\nbool = isInteger( 0 );\n// returns true\n\nbool = isInteger( 5.256 );\n// returns false\n\nbool = isInteger( 1/0 );\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; 2014. Athan Reines.\n\n\n[npm-image]: http://img.shields.io/npm/v/validate.io-integer.svg\n[npm-url]: https://npmjs.org/package/validate.io-integer\n\n[travis-image]: http://img.shields.io/travis/validate-io/integer/master.svg\n[travis-url]: https://travis-ci.org/validate-io/integer\n\n[coveralls-image]: https://img.shields.io/coveralls/validate-io/integer/master.svg\n[coveralls-url]: https://coveralls.io/r/validate-io/integer?branch=master\n\n[dependencies-image]: http://img.shields.io/david/validate-io/integer.svg\n[dependencies-url]: https://david-dm.org/validate-io/integer\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/validate-io/integer.svg\n[dev-dependencies-url]: https://david-dm.org/dev/validate-io/integer\n\n[github-issues-image]: http://img.shields.io/github/issues/validate-io/integer.svg\n[github-issues-url]: https://github.com/validate-io/integer/issues\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-28T08:32:44.300Z","created":"2014-08-31T07:15:23.559Z","0.0.0":"2014-08-31T07:15:23.559Z","1.0.0":"2014-09-01T18:29:47.186Z","1.0.1":"2014-10-21T20:23:59.903Z","1.0.2":"2014-11-17T02:34:06.519Z","1.0.3":"2015-02-19T23:32:14.375Z","1.0.4":"2015-02-20T10:47:08.767Z","1.0.5":"2015-02-22T23:34:43.800Z"},"homepage":"https://github.com/validate-io/integer","keywords":["validate.io","validate","validation","validator","number","numeric","integer","is","isinteger","type","check"],"repository":{"type":"git","url":"git://github.com/validate-io/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/integer/issues"},"readmeFilename":"README.md"}