{"_id":"tickedoff","_rev":"4-3baa2f8e1c123bb138ce93343e60fa10","name":"tickedoff","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"tickedoff","version":"1.0.0","description":"Tiny library for deferring something by a \"tick\"","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jamiebuilds/tickedoff.git"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"license":"MIT","keywords":["defer","async","wait","sleep","pause","setTimeout","setImmediate","Promise","process","nextTick","polyfill","ponyfill"],"files":["index.js"],"scripts":{"test":"ava"},"devDependencies":{"ava":"^0.25.0","flow-bin":"^0.68.0"},"gitHead":"b17f780a194b5a736d3d1afb1939997ff65b67b4","bugs":{"url":"https://github.com/jamiebuilds/tickedoff/issues"},"homepage":"https://github.com/jamiebuilds/tickedoff#readme","_id":"tickedoff@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"integrity":"sha512-7Q0NDg77Np0IwVw0fnPfcgcUvlF6eoNtvRB5Ui0Uc1JWx4jiHdj2Lm45UrkcvPUslldvJCV8uAiJSjZVDjP/gA==","shasum":"2683846e03bbb1c158ce2b4e7e85b8a6d23aed94","tarball":"https://registry.npmjs.org/tickedoff/-/tickedoff-1.0.0.tgz","fileCount":4,"unpackedSize":2786,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAR70keghEu2GYMvsERRyA/LlS5YHBdJk2IZl+u8zRZjAiAOUwmrOK9LhnwQ05QMas//KUoiy5EGH3iP9dID7Ys9WA=="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tickedoff_1.0.0_1522086848419_0.8326573878259684"},"_hasShrinkwrap":false},"1.0.1":{"name":"tickedoff","version":"1.0.1","description":"Tiny library for deferring something by a \"tick\"","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jamiebuilds/tickedoff.git"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"license":"MIT","keywords":["defer","async","wait","sleep","pause","setTimeout","setImmediate","Promise","process","nextTick","polyfill","ponyfill"],"files":["index.js"],"scripts":{"test":"ava"},"devDependencies":{"ava":"^0.25.0","flow-bin":"^0.68.0"},"gitHead":"1f9e66777dd8b800f1c0a5ec14d47405021ab575","bugs":{"url":"https://github.com/jamiebuilds/tickedoff/issues"},"homepage":"https://github.com/jamiebuilds/tickedoff#readme","_id":"tickedoff@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"integrity":"sha512-ey712Da7rGgHsAVR5P/MWPYGrrksGb/XTO1GbWCvnOggRRnnGJp1ZY+G2OYLJNxL7RgeUz2kzfEayHBzTlBLTw==","shasum":"277c463b5b275dc3c7e7473f8eef804254b9002d","tarball":"https://registry.npmjs.org/tickedoff/-/tickedoff-1.0.1.tgz","fileCount":4,"unpackedSize":2938,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPSICIbaCJdmtG5WHaWFd+ZvABHKojI1PLwfr9DLfr9QIhAJ8ooBN08J3HwOICnWhdRWUUzaMum6hxxlKtdOrTQOK4"}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tickedoff_1.0.1_1522088823186_0.4908819335243544"},"_hasShrinkwrap":false},"1.0.2":{"name":"tickedoff","version":"1.0.2","description":"Tiny library for deferring something by a \"tick\"","main":"index.js","repository":{"type":"git","url":"git+https://github.com/jamiebuilds/tickedoff.git"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"license":"MIT","keywords":["defer","async","wait","sleep","pause","setTimeout","setImmediate","Promise","process","nextTick","polyfill","ponyfill"],"files":["index.js"],"scripts":{"test":"ava"},"devDependencies":{"ava":"^0.25.0","flow-bin":"^0.68.0"},"gitHead":"99129560b3b788188c575f907488a3922b17e604","bugs":{"url":"https://github.com/jamiebuilds/tickedoff/issues"},"homepage":"https://github.com/jamiebuilds/tickedoff#readme","_id":"tickedoff@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"integrity":"sha512-iml/591Hkkcs1Llex6WcjQZo0H76gF7El4Brp1hWRHrUEjWXivrWTCeRj/FugI09ovG3pm3MZnRih7ucW6znSw==","shasum":"7f56ece47c56162032a04ed4c2e0c10ac7c4003d","tarball":"https://registry.npmjs.org/tickedoff/-/tickedoff-1.0.2.tgz","fileCount":4,"unpackedSize":2980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa2kAoCRA9TVsSAnZWagAABRgP/Ao+/UqO117I2cM63uRo\n7kcAOzWwA0c9iiyxTq7poRX11KdtlC/rZ0+dWqUptzGhkVZZrbdsmWX9pT6Z\nZy/yXDtAjAswxpb/7wuNZR9OHT3e1SnYIYHCDVzWez/2VL1m4GqLESmdZv/b\nT9XZ5N9/cN/qs7h0gRuY/0AjBtb24+3OjVCftgSz2AeKT+un8xUC6zCOtW42\n6xsZWEifT2vYqJd2PF4D+i0++VU9/9P7RjyslbJX517wJZ791SY/OKX4LAxk\nX31SnaojdPyG2P67DOM2fufhjDZp1l0GvCglFnkOsONboCEAXzwiwyKdCH1N\nU7j0EZngK92MHLU2OrsSQBdNE5lnOl8VQl3RjzWB4bRkrYR1kFfk97JiMiHM\nbRtxW/WDO0Q3pkXVApqHiD1L9KQbjgkc9BDyfSxIEVWmTCwPjI181fV8H5fZ\nsDUW/UY4UcFWZGKvPi/yycGfoUvLc2cphzCotFg1fLaTzjdeWpjHf524U7+o\ndiUAJRUD8FK6n2yPfwxQbESeAx19vytp8Q4eDYP1Tx06uHW8vGwmdhNuBoMc\ngaGt0KTc3rzA25EI/65U8j/WOPVm2rI7lRoiDK9xBxnxRMhyb0ufEQExFb0z\n/vuJAFr6Hw+fykFnU8OygvG/w7RVIkc+bogMOhpr7+iccQMKOvZsbPtiv5oX\nKSLz\r\n=sacb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCP1I1gkLq8p/DQWmpDzVtavznhTFhKQLbaWfHbTL+aqgIgR4k744i6kY1k55J6UXD3Dsf89Dz8N7/IoFUyZATzoOQ="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tickedoff_1.0.2_1524252712056_0.9668196361514096"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-26T17:54:08.419Z","1.0.0":"2018-03-26T17:54:08.473Z","modified":"2022-05-21T20:03:10.980Z","1.0.1":"2018-03-26T18:27:03.270Z","1.0.2":"2018-04-20T19:31:52.135Z"},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}],"description":"Tiny library for deferring something by a \"tick\"","homepage":"https://github.com/jamiebuilds/tickedoff#readme","keywords":["defer","async","wait","sleep","pause","setTimeout","setImmediate","Promise","process","nextTick","polyfill","ponyfill"],"repository":{"type":"git","url":"git+https://github.com/jamiebuilds/tickedoff.git"},"author":{"name":"Jamie Kyle","email":"me@thejameskyle.com"},"bugs":{"url":"https://github.com/jamiebuilds/tickedoff/issues"},"license":"MIT","readme":"# tickedoff\n\n> Tiny library (<200B gzip) for deferring something by a \"tick\"\n\n- Using `setTimeout` is actually a bit slow because its clamped to 4ms\n- `setImmediate` is not available in most places (and probably never will be)\n- `process.nextTick` is only in Node\n- `Promise#then` needs polyfills in places\n- `tickedoff` uses whatever the best available option is\n- There are more robust libraries/polyfills but they are larger in size\n- This is all especially good for libraries to use\n\n## Install\n\n```sh\nyarn add tickedoff\n```\n\n## Usage\n\n```js\nconst defer = require('tickedoff');\n\nconsole.log(1);\ndefer(() => console.log(3));\nconsole.log(2);\n// 1\n// 2\n// 3\n```\n\n## Perf\n\n```sh\n$ node perf.js\nprocess.nextTick x 10000 = 24ms\nPromise#then x 10000 = 29ms\nsetImmediate x 10000 = 68ms\nsetTimeout x 10000 = 13506ms\n```\n","readmeFilename":"README.md"}