{"_id":"compute-const-max-safe-integer","_rev":"5-493faec6d9156186f08a07d2cce78023","name":"compute-const-max-safe-integer","description":"Maximum safe double-precision floating-point integer.","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.0":{"name":"compute-const-max-safe-integer","version":"0.0.0","description":"Maximum safe double-precision floating-point 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/compute-io/const-max-safe-integer.git"},"keywords":["compute.io","compute","computation","max","safe","integer","const","constant","double","precision","double-precision","floating","point","floating-point","float64"],"bugs":{"url":"https://github.com/compute-io/const-max-safe-integer/issues"},"dependencies":{},"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":"f005e06cc2a1e1e57f34609a94414f9c6078432f","homepage":"https://github.com/compute-io/const-max-safe-integer#readme","_id":"compute-const-max-safe-integer@0.0.0","_shasum":"9bf71d2f4f319b2c0edef8f01aa566737b21ed9b","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"9bf71d2f4f319b2c0edef8f01aa566737b21ed9b","tarball":"https://registry.npmjs.org/compute-const-max-safe-integer/-/compute-const-max-safe-integer-0.0.0.tgz","integrity":"sha512-BhQ1w0WrozaEMUu6oOKL4Ci/onrQSPoabV0DqZQvVB+WA69KtESUQdHxnf3fv75S2uA45zfXH7OZO8vcSDPm+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2/a2kAZjmEayJT2B76u+XQdpcCTKhETR0e1IJzC30KAIhAM4R5G2XuMK4AlyAC4X0St8J8Ddje5v9VLlnr9A8mJzo"}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.0":{"name":"compute-const-max-safe-integer","version":"1.0.0","description":"Maximum safe double-precision floating-point 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/compute-io/const-max-safe-integer.git"},"keywords":["compute.io","compute","computation","max","safe","integer","const","constant","double","precision","double-precision","floating","point","floating-point","float64"],"bugs":{"url":"https://github.com/compute-io/const-max-safe-integer/issues"},"dependencies":{},"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":"5b5cdabb4e39e648f8ff9b7518f68481a8672799","homepage":"https://github.com/compute-io/const-max-safe-integer#readme","_id":"compute-const-max-safe-integer@1.0.0","_shasum":"d02b25090c92124bc59a12ea6e3e6d0558ab2d5f","_from":".","_npmVersion":"2.8.3","_nodeVersion":"0.10.29","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"d02b25090c92124bc59a12ea6e3e6d0558ab2d5f","tarball":"https://registry.npmjs.org/compute-const-max-safe-integer/-/compute-const-max-safe-integer-1.0.0.tgz","integrity":"sha512-aZ8EJ4+XA/2DCGHcTNd5IvnlqTRKiK7uDghmi+O5uLHzFlA/+XWOL4BPmj9E1Rk5ZB7bMEFxELaI8MV0haQ5fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtvXhCkaglfbI1kCVbz/YuQDtSprNkETIH5f780MoqYQIgG0n8e1lALppRawjD0Ds/ycRrdjWBjfapoaVJbGlPk8g="}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}]},"1.0.1":{"name":"compute-const-max-safe-integer","version":"1.0.1","description":"Maximum safe double-precision floating-point integer.","author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"scripts":{"test":"if [ \"${TRAVIS}\" ]; then npm run test-ci; else npm run test-local; fi","test-local":"tape \"./test/*.js\" | tap-spec","test-ci":"npm run test-local && xvfb-run npm run test-browsers","test-cov":"istanbul cover --dir ./reports/coverage --report lcov tape -- \"./test/*.js\"","test-browsers":"browserify ./test/*.js | testling | tap-spec","coverage":"istanbul cover --dir ./reports/codecov/coverage --report lcovonly tape -- \"./test/*.js\" && cat ./reports/codecov/coverage/lcov.info | codecov && rm -rf ./reports/codecov"},"main":"./lib","repository":{"type":"git","url":"git://github.com/const-io/max-safe-integer-float64.git"},"keywords":["const.io","const-io","const","constant","compute.io","compute","computation","max","safe","integer","double","precision","double-precision","floating","point","floating-point","float64","ieee754"],"bugs":{"url":"https://github.com/const-io/max-safe-integer-float64/issues"},"dependencies":{},"devDependencies":{"browserify":"13.x.x","codecov":"1.x.x","istanbul":"^0.4.1","jshint":"2.x.x","jshint-stylish":"2.x.x","math-power":"^1.0.0","math-round":"^1.0.0","tap-spec":"4.x.x","tape":"4.x.x","testling":"1.x.x"},"testling":{"files":["test/*.js"],"browsers":["iexplore/6.0..latest","firefox/3.0..latest","firefox/nightly","chrome/4.0..latest","chrome/canary","opera/10.0..latest","opera/next","safari/4.0..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"license":"MIT","gitHead":"fbfb1d0cd10b49565c290afb830e640182961e44","homepage":"https://github.com/const-io/max-safe-integer-float64#readme","_id":"compute-const-max-safe-integer@1.0.1","_shasum":"0376145a5a8a1e3a8adc212064fab07b20724a6e","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"kgryte","email":"kgryte@gmail.com"},"dist":{"shasum":"0376145a5a8a1e3a8adc212064fab07b20724a6e","tarball":"https://registry.npmjs.org/compute-const-max-safe-integer/-/compute-const-max-safe-integer-1.0.1.tgz","integrity":"sha512-GaXNpBd1RRueu11r7SWFNJ3Cu2MX7Tdi8aCOSt5qBZSxmCn4HJfP9rzOgF8yWz5kPszhWWwqgFp8wbUm0WcKBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcO/uBX5UI4Vi64xrqZuKBr8EAO8ogwRHM5FL9H4V/dwIhAJWxC+EEJU5Mx/ojGeSjXtUVYRNSN/gIzAoYfDoz9RvG"}]},"maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/compute-const-max-safe-integer-1.0.1.tgz_1457486117072_0.4827261052560061"}}},"readme":"MAX SAFE INTEGER\n===\n[![NPM version][npm-image]][npm-url] [![Build Status][build-image]][build-url] [![Coverage Status][coverage-image]][coverage-url] [![Dependencies][dependencies-image]][dependencies-url]\n\n> Maximum safe [double-precision floating-point][ieee754] integer.\n\n\n## Installation\n\n``` bash\n$ npm install compute-const-max-safe-integer\n```\n\n\n## Usage\n\n``` javascript\nvar MAX_SAFE_INTEGER = require( 'compute-const-max-safe-integer' );\n```\n\n#### MAX_SAFE_INTEGER\n\nThe maximum [safe][safe-integers] [double-precision floating-point][ieee754] integer.\n\n``` javascript\nMAX_SAFE_INTEGER === Math.pow( 2, 53 ) - 1; // 9007199254740991\n```\n\n\n## Examples\n\n``` javascript\nvar round = require( 'math-round' );\nvar pow = require( 'math-power' );\nvar MAX_SAFE_INTEGER = require( 'compute-const-max-safe-integer' );\n\nvar max;\nvar x;\nvar i;\n\nmax = pow( 2, 55 );\nfor ( i = 0; i < 100; i++ ) {\n\tx = round( Math.random() * max );\n\tif ( x > MAX_SAFE_INTEGER ) {\n\t\tconsole.log( 'Unsafe: %d', x );\n\t} else {\n\t\tconsole.log( 'Safe: %d', x );\n\t}\n}\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---\n## Tests\n\n### Unit\n\nThis repository uses [tape][tape] for unit tests. 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][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### Browser Support\n\nThis repository uses [Testling][testling] for browser testing. To run the tests in a (headless) local web browser, execute the following command in the top-level application directory:\n\n``` bash\n$ make test-browsers\n```\n\nTo view the tests in a local web browser,\n\n``` bash\n$ make view-browser-tests\n```\n\n<!-- [![browser support][browsers-image]][browsers-url] -->\n\n\n---\n## License\n\n[MIT license](http://opensource.org/licenses/MIT).\n\n\n## Copyright\n\nCopyright &copy; 2015-2016. The [Compute.io][compute-io] Authors.\n\n\n[npm-image]: http://img.shields.io/npm/v/compute-const-max-safe-integer.svg\n[npm-url]: https://npmjs.org/package/compute-const-max-safe-integer\n\n[build-image]: http://img.shields.io/travis/const-io/max-safe-integer-float64/master.svg\n[build-url]: https://travis-ci.org/const-io/max-safe-integer-float64\n\n[coverage-image]: https://img.shields.io/codecov/c/github/const-io/max-safe-integer-float64/master.svg\n[coverage-url]: https://codecov.io/github/const-io/max-safe-integer-float64?branch=master\n\n[dependencies-image]: http://img.shields.io/david/const-io/max-safe-integer-float64.svg\n[dependencies-url]: https://david-dm.org/const-io/max-safe-integer-float64\n\n[dev-dependencies-image]: http://img.shields.io/david/dev/const-io/max-safe-integer-float64.svg\n[dev-dependencies-url]: https://david-dm.org/dev/const-io/max-safe-integer-float64\n\n[github-issues-image]: http://img.shields.io/github/issues/const-io/max-safe-integer-float64.svg\n[github-issues-url]: https://github.com/const-io/max-safe-integer-float64/issues\n\n[tape]: https://github.com/substack/tape\n[istanbul]: https://github.com/gotwarlost/istanbul\n[testling]: https://ci.testling.com\n\n[compute-io]: https://github.com/compute-io\n\n[safe-integers]: http://www.2ality.com/2013/10/safe-integers.html\n[ieee754]: https://en.wikipedia.org/wiki/IEEE_754-1985\n","maintainers":[{"name":"kgryte","email":"kgryte@gmail.com"}],"time":{"modified":"2022-06-13T20:26:47.809Z","created":"2015-05-08T08:26:53.761Z","0.0.0":"2015-05-08T08:26:53.761Z","1.0.0":"2015-05-08T08:27:31.542Z","1.0.1":"2016-03-09T01:15:19.527Z"},"homepage":"https://github.com/const-io/max-safe-integer-float64#readme","keywords":["const.io","const-io","const","constant","compute.io","compute","computation","max","safe","integer","double","precision","double-precision","floating","point","floating-point","float64","ieee754"],"repository":{"type":"git","url":"git://github.com/const-io/max-safe-integer-float64.git"},"contributors":[{"name":"Athan Reines","email":"kgryte@gmail.com"}],"author":{"name":"Athan Reines","email":"kgryte@gmail.com"},"bugs":{"url":"https://github.com/const-io/max-safe-integer-float64/issues"},"readmeFilename":"README.md","license":"MIT"}