{"_id":"yoctodelay","_rev":"5-b0c311f7affe975d90d7f2ff243aee2d","name":"yoctodelay","description":"Delay a promise a specified amount of time","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"yoctodelay","version":"1.0.0","description":"Delay a promise a specified amount of time","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/yoctodelay.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","resolve","delay","defer","wait","stall","timeout","settimeout","event","loop","next","tick","delay","async","await","promises","bluebird"],"devDependencies":{"ava":"*","in-range":"^1.0.0","time-span":"^2.0.0","xo":"*"},"xo":{"ignores":["index.js"]},"gitHead":"f640eeb5f440131bb249eea8bf34f6f3d1fd76b8","bugs":{"url":"https://github.com/sindresorhus/yoctodelay/issues"},"homepage":"https://github.com/sindresorhus/yoctodelay#readme","_id":"yoctodelay@1.0.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-2eRLNcHefPUw245P8THFQ6+rCndyG9MYu0eyu7SiA2QtwcV2iLZJgg+1wq7gzFCG+VPLO3Tndc+7Zo/hZdErYQ==","shasum":"332610846096a868a6adfe05171cfab3fa57815a","tarball":"https://registry.npmjs.org/yoctodelay/-/yoctodelay-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7xcGuJofxigVybcmxio5KClctk1GMbNtJ4w6UFnw4QQIhAPfbwigXkq9OZ5YYUqNvIdv33FHFnQYl8IOV/ZsSwnZz"}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yoctodelay-1.0.0.tgz_1508671482798_0.9338902852032334"},"directories":{}},"1.1.0":{"name":"yoctodelay","version":"1.1.0","description":"Delay a promise a specified amount of time","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/yoctodelay.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","resolve","delay","defer","wait","stall","timeout","settimeout","event","loop","next","tick","delay","async","await","promises","bluebird"],"devDependencies":{"ava":"*","in-range":"^1.0.0","time-span":"^2.0.0","xo":"*"},"xo":{"rules":{"eol-last":0},"ignores":["index.js"]},"gitHead":"ad7aef8e570d3217e9845419575bff87122de1ca","bugs":{"url":"https://github.com/sindresorhus/yoctodelay/issues"},"homepage":"https://github.com/sindresorhus/yoctodelay#readme","_id":"yoctodelay@1.1.0","_npmVersion":"5.4.2","_nodeVersion":"8.7.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-iCPt7W3X6SCm5wEnMRCoq+c8XCzscKTT0oWq5TNsIb+PUVtNkt/5O3VGlXXlLBnjTKL+29QyTzqbcJNLaiaJyQ==","shasum":"4820ab055bb044a582e92d01701ada043f427132","tarball":"https://registry.npmjs.org/yoctodelay/-/yoctodelay-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1ZLaBTAoc9Aqz/yH16cA6iooHVVB11Ui4AyeW+paR1AIgVBDCqYGCL3cUMk66CUHIjDpEGwoa0AL8g80wlJJ+bTM="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yoctodelay-1.1.0.tgz_1508759003810_0.8754480232018977"},"directories":{}},"1.2.0":{"name":"yoctodelay","version":"1.2.0","description":"Delay a promise a specified amount of time","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/yoctodelay.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","resolve","delay","defer","wait","stall","timeout","settimeout","event","loop","next","tick","delay","async","await","promises","bluebird"],"devDependencies":{"ava":"^2.4.0","in-range":"^1.0.0","time-span":"^2.0.0","tsd":"^0.14.0","xo":"^0.24.0"},"xo":{"rules":{"eol-last":0},"ignores":["index.js"]},"gitHead":"4ae31dde3a7431e377e3268e457687ea74bb0c40","bugs":{"url":"https://github.com/sindresorhus/yoctodelay/issues"},"homepage":"https://github.com/sindresorhus/yoctodelay#readme","_id":"yoctodelay@1.2.0","_nodeVersion":"14.15.1","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-12y/P9MSig9/5BEhBgylss+fkHiCRZCvYR81eH35NW9uw801cvJt31EAV+WOLcwZRZbLiIQl/hxcdXXXFmGvXg==","shasum":"0d020c8bcec22989369db31e5d352acc6a13eda8","tarball":"https://registry.npmjs.org/yoctodelay/-/yoctodelay-1.2.0.tgz","fileCount":5,"unpackedSize":3524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIOrpCRA9TVsSAnZWagAAtWAQAIt/9Gse4MrOAIj1QCsZ\nHnRc2VezLUfwU3GHNZrJf8CilGBOGw47iK5WcRTiJXC+ZB+Er+H0qAO5+2Jx\nhZvJdbFtSU6LC+HYVr51WeALqVTE+saYSXghQ5ScFGwo4DLTuBfiTKOVD1/Y\ninmjQuy4MEw34fa5UiG2XwUPa/+9Snslqb+6bSEGOn/Y1a5+xQvcszmRZvR+\ngDKMSG5UB/M3SSZUTEJcuttmfPw/ky07CeYBNxawZ3nJibvEF/jnpz5LdeIf\naepdvL+s+q0RcuZvWVzXhcpQNCZyExisDAJ3Q8S+RpdyIi87az3IwSKckrjt\nDYiG0ayan+W0wYk17oxohF/aj6jVEZi4i4Y119qUBElv1ByqrehVvElI9C9y\nfSstOt6Iff2Ji1cXWdtOjrPthS0jTpbdNEZ80ZQTnyAZc6Yc/1LrXN0ccHSU\nCV69w3SqiKSMVrI6NKpwoYLQYz1ULFu4O3QI7s4hMpHz97QTjUoPh1clYnia\nnm4aWGcuRPq6lGXcXQVlA+uVsHuMcleSK0jclgx2zLmkON++51Mg92lFlLd9\nJicjdj/lMpAryPtpUxy2Dy5uqSbm0IRtQbXUnGDbP3mZbZxnjZcD6uqepffU\nZfB5epgnFGFfMd8xy4nONOKHukktmQI+N5PFdHKYrH3G7zj4kgOce4FMyHbd\nHXaj\r\n=ezg5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpi5S7JpW28jqSUDNH3tfaxCDNuovzZt8f1CdXLuxxiAiAEwKswYyfRsFuJ9Jm6tVwz7dNL0JmjFM+tEPvyAH6CyA=="}]},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yoctodelay_1.2.0_1612770025143_0.21498271718056494"},"_hasShrinkwrap":false},"2.0.0":{"name":"yoctodelay","version":"2.0.0","description":"Delay a promise a specified amount of time","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/yoctodelay.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","resolve","delay","defer","wait","stall","timeout","settimeout","event","loop","next","tick","delay","async","await","promises","bluebird"],"devDependencies":{"ava":"^3.15.0","in-range":"^3.0.0","time-span":"^5.0.0","tsd":"^0.17.0","xo":"^0.44.0"},"xo":{"rules":{"eol-last":"off"},"ignores":["index.js"]},"gitHead":"736bd0779546659b3c933542e43c31d1bfde53a2","bugs":{"url":"https://github.com/sindresorhus/yoctodelay/issues"},"homepage":"https://github.com/sindresorhus/yoctodelay#readme","_id":"yoctodelay@2.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"integrity":"sha512-0m1YaiUEnEPrZ7mKxkfRpPLfOjG1GeWd2E2IfB8toIUEhXjk5cW+czBDiQQkkMDycsuGDkG1dP40QQQoKJmEWw==","shasum":"764574818d7fd16c14b6cea7b5dbb52d6f22cdca","tarball":"https://registry.npmjs.org/yoctodelay/-/yoctodelay-2.0.0.tgz","fileCount":5,"unpackedSize":3770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGCnJCRA9TVsSAnZWagAAnk4P/j7pG4s/axTDINLEwwkT\nd3GYWWmCglfhQSYTDxTH3uNSpdQ6Yup0scE08F3yz6UULBx55rLHXD5G6GpR\n1ZCx9xjD5wtL+lhO8fE455xORFTMkeYnEExHMV/hfCZnAJsQ06us4gy6Ri7t\nW5RDG7dhpfeorO1NIMzXrVWwoEKFzrqqFbrohA7dSTkkBi2iAmey927Gyngb\nrSp1+co2uiZR6ZSwMmk/k2ASM4conYcMtFqUzs3WtJwtZY/+CQ1WdTmsd+zP\niAPyUueUX1zAz1tJJ2Yz9YSOI7l97Dj8koTPgCxfJNmOMjsA1irCj5li3F/1\nEbO5aZifa/H6jqyp/LXM8fQlXrC/89jlEIub3HMvaA680/NyiSOXjVcn+Alz\nWDSXmJs5vdct6C5XmMSud9Axzl2cEuQN7tg4SQ142Mj9pGZueCxp2IFY8iIR\nR94J6VEGpl51cngfZtVU+gA5eW7uinyc00yGa8J5QBGw6zCF/3oHPEYa6caL\n1nkeOYiHvu97DUhwBFc0ras0ViKXB8iAOj6K/cBNmB//itu2Kti8ZUhAkQ95\nB1ZO4NEDOMz3sa6Za8C4mB0gLMPFuujMAbSEYTph/QnqIR4l1/9/FLOaAG8r\n5ddADeuHjwxyHWB92XzXvfrfGvMaCy7qFc4kl1H+pLk9dcl5Cmgiu1Fs6wQX\nf2is\r\n=Ef9Z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG6yaNuAt29Xz+xkGlVXuhb8hnJcr3qokqdX8HkNOeQkAiAD0on8KIpgAKfbJzVy25bJsNGm2NjJ22/Uo4pIYt41QA=="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yoctodelay_2.0.0_1628973513717_0.5061186759183529"},"_hasShrinkwrap":false}},"readme":"# yoctodelay\n\n> Delay a promise a specified amount of time\n\nIt's less than half the size of the [`nanodelay`](https://github.com/ai/nanodelay) module.\n\n**Note:** If you target Node.js 16 or later, you can use the built-in functionality instead:\n\n```js\nimport {setTimeout as delay} from 'node:timers/promises';\n\nawait delay(100);\n```\n\n## Install\n\n```\n$ npm install yoctodelay\n```\n\n## Usage\n\n```js\nimport delay from 'yoctodelay';\n\nfoo();\n\nawait delay(100);\n\n// Executed 100 milliseconds later\nbar();\n```\n\n## API\n\n### delay(milliseconds)\n\nDelay the promise and then resolve.\n\n#### milliseconds\n\nType: `number`\n\nThe duration to delay the promise.\n\n## FAQ\n\n### What is yocto?\n\n[It's the smallest official unit prefix in the metric system.](https://en.wikipedia.org/wiki/Yocto-) Much smaller than nano.\n\n### Is this a joke?\n\nPartly. The `nanodelay` module was created only because the `delay` module is a tiny bit larger. Well, this module is a tiny bit smaller than the `nanodelay` module. Comparing size at the byte level is super silly. It doesn't matter unless the difference is more than many kilobytes. This is still a fully working module though. Go ahead and use it.\n\n## Related\n\n- [delay](https://github.com/sindresorhus/delay) - Similar to this module but with more features\n- [More…](https://github.com/sindresorhus/promise-fun)\n","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2022-05-25T06:44:22.105Z","created":"2017-10-22T11:24:42.898Z","1.0.0":"2017-10-22T11:24:42.898Z","1.1.0":"2017-10-23T11:43:23.939Z","1.2.0":"2021-02-08T07:40:25.307Z","2.0.0":"2021-08-14T20:38:33.879Z"},"homepage":"https://github.com/sindresorhus/yoctodelay#readme","keywords":["promise","resolve","delay","defer","wait","stall","timeout","settimeout","event","loop","next","tick","delay","async","await","promises","bluebird"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/yoctodelay.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/yoctodelay/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"seangenabe":true}}