{"_id":"max-timeout","_rev":"299556","name":"max-timeout","description":"The max amount of milliseconds you can pass to `setTimeout()`","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T19:03:16.000Z","created":"2015-11-15T17:40:51.277Z","2.0.0":"2021-04-07T05:25:43.561Z","1.0.0":"2015-11-15T17:40:51.277Z"},"users":{"rocket0191":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/max-timeout.git"},"versions":{"2.0.0":{"name":"max-timeout","version":"2.0.0","description":"The max amount of milliseconds you can pass to `setTimeout()`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/max-timeout.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava"},"keywords":["max","maximum","timeout","settimeout","delay","overflow","number","constant"],"devDependencies":{"ava":"^3.15.0","xo":"^0.38.2"},"gitHead":"0dcda4ea9667be9c1902bc9c28f589c515192571","bugs":{"url":"https://github.com/sindresorhus/max-timeout/issues"},"homepage":"https://github.com/sindresorhus/max-timeout#readme","_id":"max-timeout@2.0.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"732a4131021fcdf0a5568edef16adbb895f1a4f2","size":1482,"noattachment":false,"key":"/max-timeout/-/max-timeout-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/max-timeout/download/max-timeout-2.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/max-timeout_2.0.0_1617773143440_0.3696300697830368"},"_hasShrinkwrap":false,"publish_time":1617773143561,"_cnpm_publish_time":1617773143561},"1.0.0":{"name":"max-timeout","version":"1.0.0","description":"The max amount of milliseconds you can pass to `setTimeout()`","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/max-timeout"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["max","maximum","timeout","settimeout","delay","overflow","number","constant"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"1677b3a19bd31c54fc9443a6fc9b29ea42d7cb9b","bugs":{"url":"https://github.com/sindresorhus/max-timeout/issues"},"homepage":"https://github.com/sindresorhus/max-timeout","_id":"max-timeout@1.0.0","_shasum":"b68f69a2f99e0b476fd4cb23e2059ca750715e1f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b68f69a2f99e0b476fd4cb23e2059ca750715e1f","size":1567,"noattachment":false,"key":"/max-timeout/-/max-timeout-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/max-timeout/download/max-timeout-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1447609251277,"_cnpm_publish_time":1447609251277,"_hasShrinkwrap":false}},"readme":"# max-timeout\n\n> The max amount of milliseconds you can pass to `setTimeout()`\n\nA value larger than the one returned from this module, 2147483647 (~25 days), is too big to fit into a signed 32-bit integer, which is how JS engines store it, and will cause overflow, resulting in the timeout being scheduled immediately.\n\n## Install\n\n```\n$ npm install max-timeout\n```\n\n## Usage\n\n```js\nimport maxTimeout from 'max-timeout';\n\nsetTimeout(() => {}, maxTimeout);\n```\n\n## Related\n\n- [delay](https://github.com/sindresorhus/delay) - Delay a promise a specified amount of time\n","_attachments":{},"homepage":"https://github.com/sindresorhus/max-timeout#readme","bugs":{"url":"https://github.com/sindresorhus/max-timeout/issues"},"license":"MIT"}