{"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":"http://registry-npm.ywwl.com/validate.io-integer/download/validate.io-integer-1.0.2.tgz","integrity":"sha512-1gv1Jwr8tbe/dS7T6h4U1Ijmud3yKmPy9oBP6aPzrkPiyPtw25bZGeiAfycholh8GpmwSebI2pYO4PNZrekpkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHKU4+mRV2IikJnkEtt+M4Y7KsU16ipKDMLtGM2Jamq2AiBvZxseAGl7m4A3UHpFkPcIGreoN9k+85AC6aPPEmbRGg=="}],"size":2520,"noattachment":false,"key":"/validate.io-integer/-/validate.io-integer-1.0.2.tgz"},"directories":{},"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","publish_time":1416191646519,"_cnpm_publish_time":1416191646519,"dist-tags":{"latest":"1.0.5"}}