{"_id":"big-time","_rev":"3739138","name":"big-time","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"arb","email":""}],"time":{"modified":"2025-02-13T06:19:13.000Z","created":"2015-05-29T14:05:26.965Z","2.0.1":"2018-04-11T00:02:35.711Z","2.0.0":"2017-09-29T20:19:35.764Z","1.1.0":"2015-12-16T16:49:12.478Z","1.0.8":"2015-10-24T14:48:47.456Z","1.0.7":"2015-10-14T13:13:51.863Z","1.0.6":"2015-06-28T13:32:56.810Z","1.0.5":"2015-06-09T14:26:21.012Z","1.0.4":"2015-06-08T16:20:33.880Z","1.0.2":"2015-05-29T15:11:58.584Z","1.0.1":"2015-05-29T14:11:36.900Z","1.0.0":"2015-05-29T14:05:26.965Z"},"users":{},"author":{"name":"Adam Bretz","email":"arbretz@gmail.com"},"repository":{"type":"git","url":"git://github.com/arb/big-time.git"},"versions":{"2.0.1":{"name":"big-time","version":"2.0.1","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","author":{"name":"Adam Bretz","email":"arbretz@gmail.com"},"main":"lib/index.js","homepage":"https://github.com/arb/big-time","repository":{"type":"git","url":"git://github.com/arb/big-time.git"},"bugs":{"url":"https://github.com/arb/big-time/issues"},"license":"MIT","scripts":{"test":"npm run lint && lab -v -a code -c -m 10000","lint":"belly-button -f"},"engines":{"node":">=6.0.0"},"devDependencies":{"belly-button":"4.x.x","lab":"14.x.x"},"gitHead":"af8b29fcf4573b514a4fd016dfeb9f1424d91f37","_id":"big-time@2.0.1","_shasum":"68c7df8dc30f97e953f25a67a76ac9713c16c9de","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.2","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"dist":{"shasum":"68c7df8dc30f97e953f25a67a76ac9713c16c9de","size":2990,"noattachment":false,"key":"/big-time/-/big-time-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-2.0.1.tgz"},"maintainers":[{"name":"arb","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/big-time_2.0.1_1523404955652_0.6454731805199714"},"_hasShrinkwrap":false,"publish_time":1523404955711,"_cnpm_publish_time":1523404955711,"_cnpmcore_publish_time":"2021-12-17T00:51:29.264Z"},"2.0.0":{"name":"big-time","version":"2.0.0","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","author":{"name":"Continuation Labs","email":"contact@continuation.io","url":"http://continuation.io/"},"main":"lib/index.js","homepage":"https://github.com/continuationlabs/big-time","repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"license":"MIT","scripts":{"test":"npm run lint && lab -v -a code -c -m 10000","lint":"belly-button -f"},"engines":{"node":">=6.0.0"},"devDependencies":{"belly-button":"4.x.x","lab":"14.x.x"},"gitHead":"a14aa35dcbd2dacab7c3789b1616deec343d1bf6","_id":"big-time@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"cjihrig","email":"cjihrig@gmail.com"},"dist":{"shasum":"70193b60faff72c96ed52331b555490e604d7ccc","size":3000,"noattachment":false,"key":"/big-time/-/big-time-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-2.0.0.tgz"},"maintainers":[{"name":"arb","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/big-time-2.0.0.tgz_1506716373368_0.872763579711318"},"directories":{},"publish_time":1506716375764,"_hasShrinkwrap":false,"_cnpm_publish_time":1506716375764,"_cnpmcore_publish_time":"2021-12-17T00:51:29.497Z"},"1.1.0":{"name":"big-time","version":"1.1.0","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","main":"lib/index.js","scripts":{"test":"npm run lint && lab -T test/transformer.js -I __core-js_shared__ -v -t 100 -a code -m 10000","compile":"babel src --out-dir lib","lint":"belly-button --i 'src/**.js' --i 'test/**.js'","prepublish":"npm run compile"},"repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"author":{"name":"Continuation Labs"},"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"homepage":"https://github.com/continuationlabs/big-time","devDependencies":{"babel-cli":"6.1.x","babel-core":"6.0.x","babel-preset-es2015":"6.0.x","belly-button":"1.x.x","code":"1.x.x","lab":"6.x.x"},"gitHead":"3c6e9e054d6c62ab40f9feb98b42c7f59b70773a","_id":"big-time@1.1.0","_shasum":"fd1d11caf232ae9f6036ccface946ac30d0652ec","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"arb","email":""}],"dist":{"shasum":"fd1d11caf232ae9f6036ccface946ac30d0652ec","size":4397,"noattachment":false,"key":"/big-time/-/big-time-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-1.1.0.tgz"},"directories":{},"publish_time":1450284552478,"_hasShrinkwrap":false,"_cnpm_publish_time":1450284552478,"_cnpmcore_publish_time":"2021-12-17T00:51:29.717Z"},"1.0.8":{"name":"big-time","version":"1.0.8","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","main":"lib/index.js","scripts":{"test":"npm run lint && lab -T test/transformer.js -v -t 100 -a code -m 10000","compile":"babel src --out-dir lib","lint":"belly-button --i 'src/**.js' --i 'test/**.js'","prepublish":"npm run compile"},"repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"author":{"name":"Continuation Labs"},"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"homepage":"https://github.com/continuationlabs/big-time","devDependencies":{"babel":"5.8.x","babel-core":"5.8.x","belly-button":"1.x.x","code":"1.x.x","lab":"6.x.x"},"gitHead":"a88452a9f6beb7cae9214b6d7f1ea6afa986f147","_id":"big-time@1.0.8","_shasum":"524245d3ec891969560b09c22e23901cd46ff061","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"arb","email":""}],"dist":{"shasum":"524245d3ec891969560b09c22e23901cd46ff061","size":4218,"noattachment":false,"key":"/big-time/-/big-time-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-1.0.8.tgz"},"directories":{},"publish_time":1445698127456,"_hasShrinkwrap":false,"_cnpm_publish_time":1445698127456,"_cnpmcore_publish_time":"2021-12-17T00:51:29.935Z"},"1.0.7":{"name":"big-time","version":"1.0.7","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","main":"lib/index.js","scripts":{"test":"npm run lint && lab -T test/transformer.js -v -t 100 -a code -m 10000","compile":"babel src --out-dir lib","lint":"eslint src","prepublish":"npm run compile"},"repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"author":{"name":"Continuation Labs"},"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"homepage":"https://github.com/continuationlabs/big-time","devDependencies":{"babel":"5.8.x","babel-core":"5.8.x","code":"1.x.x","eslint":"1.x.x","eslint-config-hapi":"3.x.x","eslint-plugin-hapi":"1.x.x","lab":"6.x.x"},"gitHead":"2343694721828837861888da0a82bcf0f806c81f","_id":"big-time@1.0.7","_shasum":"6df315106c1ed8e0696a4f55c9f78b898e61df48","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"arb","email":""}],"dist":{"shasum":"6df315106c1ed8e0696a4f55c9f78b898e61df48","size":4282,"noattachment":false,"key":"/big-time/-/big-time-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-1.0.7.tgz"},"directories":{},"publish_time":1444828431863,"_hasShrinkwrap":false,"_cnpm_publish_time":1444828431863,"_cnpmcore_publish_time":"2021-12-17T00:51:30.235Z"},"1.0.6":{"name":"big-time","version":"1.0.6","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","main":"lib/index.js","scripts":{"test":"npm run lint && lab -T test/transformer.js -v -t 90 -a code -m 10000","compile":"babel src --out-dir lib","lint":"eslint src","prepublish":"npm run compile"},"repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"author":{"name":"Continuation Labs"},"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"homepage":"https://github.com/continuationlabs/big-time","devDependencies":{"babel":"5.6.x","babel-core":"5.6.x","babel-eslint":"3.1.x","code":"1.x.x","eslint":"0.23.x","eslint-plugin-hapi":"1.x.x","lab":"5.x.x"},"gitHead":"c6ea4ae322c6f922c3d2342631ab066406b1396d","_id":"big-time@1.0.6","_shasum":"4fb35ac13b7e4f3c9dbc2cbeb7de4c4f407a7740","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.10.38","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"arb","email":""}],"dist":{"shasum":"4fb35ac13b7e4f3c9dbc2cbeb7de4c4f407a7740","size":4320,"noattachment":false,"key":"/big-time/-/big-time-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-1.0.6.tgz"},"directories":{},"publish_time":1435498376810,"_hasShrinkwrap":false,"_cnpm_publish_time":1435498376810,"_cnpmcore_publish_time":"2021-12-17T00:51:30.430Z"},"1.0.5":{"name":"big-time","version":"1.0.5","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","main":"lib/index.js","scripts":{"test":"lab -T test/transformer.js -m 5000 -t 90 -v -La code","compile":"babel src --out-dir lib","prepublish":"npm run compile"},"repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"author":{"name":"Continuation Labs"},"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"homepage":"https://github.com/continuationlabs/big-time","devDependencies":{"babel":"5.5.x","babel-core":"5.5.x","babel-eslint":"3.1.x","code":"1.x.x","lab":"5.x.x"},"gitHead":"5ab5b234b7f8f9d3c8a3c70008c0405d57f66339","_id":"big-time@1.0.5","_shasum":"50057af985b8dc647a7a70debf86243e24ad9aac","_from":".","_npmVersion":"2.11.1","_nodeVersion":"0.10.38","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"arb","email":""}],"dist":{"shasum":"50057af985b8dc647a7a70debf86243e24ad9aac","size":4528,"noattachment":false,"key":"/big-time/-/big-time-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-1.0.5.tgz"},"directories":{},"publish_time":1433859981012,"_hasShrinkwrap":false,"_cnpm_publish_time":1433859981012,"_cnpmcore_publish_time":"2021-12-17T00:51:30.664Z"},"1.0.4":{"name":"big-time","version":"1.0.4","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","main":"lib/index.js","scripts":{"test":"lab -T test/transformer.js -m 5000 -t 95 -v -La code","compile":"babel src --out-dir lib","prepublish":"npm run compile"},"repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"author":{"name":"Continuation Labs"},"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"homepage":"https://github.com/continuationlabs/big-time","devDependencies":{"babel":"5.5.x","babel-core":"5.5.x","babel-eslint":"3.1.x","code":"1.x.x","lab":"5.x.x"},"gitHead":"f0bf10a5ef91c1e38fe159070920120ff3018e78","_id":"big-time@1.0.4","_shasum":"fb7e2a0a99ee2743abe7639ba93b2701d4d59c45","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.38","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"arb","email":""}],"dist":{"shasum":"fb7e2a0a99ee2743abe7639ba93b2701d4d59c45","size":4444,"noattachment":false,"key":"/big-time/-/big-time-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-1.0.4.tgz"},"directories":{},"publish_time":1433780433880,"_hasShrinkwrap":false,"_cnpm_publish_time":1433780433880,"_cnpmcore_publish_time":"2021-12-17T00:51:30.870Z"},"1.0.2":{"name":"big-time","version":"1.0.2","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","main":"lib/index.js","scripts":{"test":"lab -m 5000 -t 100 -v -La code","test-cov-html":"lab -m 5000 -r html -o coverage.html -La code"},"repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"author":{"name":"Continuation Labs"},"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"homepage":"https://github.com/continuationlabs/big-time","devDependencies":{"code":"1.x.x","lab":"5.x.x"},"gitHead":"a0174018c0207c06a2d366112739f0cada255898","_id":"big-time@1.0.2","_shasum":"5afc46ea7c717baf7e9701cad12ee18b68d04c25","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.38","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"arb","email":""}],"dist":{"shasum":"5afc46ea7c717baf7e9701cad12ee18b68d04c25","size":3245,"noattachment":false,"key":"/big-time/-/big-time-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-1.0.2.tgz"},"directories":{},"publish_time":1432912318584,"_hasShrinkwrap":false,"_cnpm_publish_time":1432912318584,"_cnpmcore_publish_time":"2021-12-17T00:51:31.097Z"},"1.0.1":{"name":"big-time","version":"1.0.1","description":"Big time makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","main":"lib/index.js","scripts":{"test":"lab -m 5000 -t 100 -v -La code","test-cov-html":"lab -m 5000 -r html -o coverage.html -La code"},"repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"author":{"name":"Continuation Labs"},"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"homepage":"https://github.com/continuationlabs/big-time","devDependencies":{"code":"1.x.x","lab":"5.x.x"},"gitHead":"1034ece59fc3e47fab479c80e552e580301bbb5a","_id":"big-time@1.0.1","_shasum":"372dabe02e43879714494e6b0a5d648cc31bdfd7","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.38","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"arb","email":""}],"dist":{"shasum":"372dabe02e43879714494e6b0a5d648cc31bdfd7","size":3011,"noattachment":false,"key":"/big-time/-/big-time-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-1.0.1.tgz"},"directories":{},"publish_time":1432908696900,"_hasShrinkwrap":false,"_cnpm_publish_time":1432908696900,"_cnpmcore_publish_time":"2021-12-17T00:51:31.297Z"},"1.0.0":{"name":"big-time","version":"1.0.0","description":"Long timeout makes it possible to have a timeout that is longer than 24.8 days (2^31-1 milliseconds).","main":"lib/index.js","scripts":{"test":"lab -m 5000 -t 100 -v -La code","test-cov-html":"lab -m 5000 -r html -o coverage.html -La code"},"repository":{"type":"git","url":"git://github.com/continuationlabs/big-time.git"},"author":{"name":"Continuation Labs"},"license":"MIT","bugs":{"url":"https://github.com/continuationlabs/big-time/issues"},"homepage":"https://github.com/continuationlabs/big-time","devDependencies":{"code":"1.x.x","lab":"5.x.x"},"gitHead":"8a7015ea107854921f576f0736bd20b32ec901e0","_id":"big-time@1.0.0","_shasum":"1e15515ec36e0768bc9683cae3c4beba2de0dc4e","_from":".","_npmVersion":"2.7.0","_nodeVersion":"0.10.38","_npmUser":{"name":"arb","email":"arbretz@gmail.com"},"maintainers":[{"name":"arb","email":""}],"dist":{"shasum":"1e15515ec36e0768bc9683cae3c4beba2de0dc4e","size":3013,"noattachment":false,"key":"/big-time/-/big-time-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/big-time/download/big-time-1.0.0.tgz"},"directories":{},"publish_time":1432908326965,"_hasShrinkwrap":false,"_cnpm_publish_time":1432908326965,"_cnpmcore_publish_time":"2021-12-17T00:51:31.573Z"}},"readme":"# Big-Time\n\n[![Current Version](https://img.shields.io/npm/v/big-time.svg)](https://www.npmjs.org/package/big-time)\n[![Build Status via Travis CI](https://travis-ci.org/arb/big-time.svg?branch=master)](https://travis-ci.org/arb/big-time)\n[![belly-button-style](https://img.shields.io/badge/eslint-bellybutton-4B32C3.svg)](https://github.com/continuationlabs/belly-button)\n\n\nReworking of [long-timeout](https://github.com/tellnes/long-timeout) that has more features, follows correct semver, and has unit tests. Big-Time is a custom timer class to allow really long values into `setTimeout` that are larger than JavaScript would normally support (2^31-1).\n\n## Usage\n\n```js\n'use strict';\nconst bt = require('big-time');\n\nbt.setTimeout(() => {\n  console.log('if you wait for this, it will eventually log');\n}, Number.MAX_VALUE);\n\nconst timer = bt.setTimeout(() => {\n  console.log('shorter');\n}, 1000);\nbt.clearTimeout(timer);\n```\n\n## API\n\n### `bt.setTimeout(callback, delay, [arg1, arg2, arg3,...])`\n\nCreates a new Big-Time timer object and starts the timer where:\n\n- `callback` - the function to execute after `delay` milliseconds has passed. `callback` will be called with `arg1, arg2, arg3...` if they are passed into `setTimeout`, exactly like native `setTimeout`\n- `delay` - an integer representing the number of milliseconds to wait before executing `callback`. Alternatively, a `Date` instance can be provided. In this scenario, the delay is computed by subtracting `Date.now()` from the `Date` instance.\n- `[arg1, arg2, arg3,...]` - optional `N` number of extra parameters that will be passed back into `callback`.\n\n### `bt.clearTimeout(timer)`\n\nClears a running Big-Time object.\n\n### `Timeout.prototype.ref()`\n\nWhen called, requests that the Node.js event loop not exit so long as the\n`Timeout` is active. Calling `timeout.ref()` multiple times will have no effect.\n\nBy default, all `Timeout` objects are \"ref'd\", making it normally unnecessary to\ncall `timeout.ref()` unless `timeout.unref()` had been called previously.\n\nReturns a reference to the `Timeout`.\n\n### `Timeout.prototype.unref()`\n\nWhen called, the active `Timeout` object will not require the Node.js event loop\nto remain active. If there is no other activity keeping the event loop running,\nthe process may exit before the `Timeout` object's callback is invoked. Calling\n`timeout.unref()` multiple times will have no effect.\n\nReturns a reference to the `Timeout`.\n","_attachments":{},"homepage":"https://github.com/arb/big-time","bugs":{"url":"https://github.com/arb/big-time/issues"},"license":"MIT"}