{"_id":"@iocmd/wait","_rev":"4171125","name":"@iocmd/wait","description":"promisified setTimeout","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"time":{"modified":"2026-03-01T21:17:20.000Z","created":"2020-04-26T18:32:25.538Z","2.1.0":"2022-04-06T19:30:31.541Z","2.0.0":"2022-04-06T19:17:20.206Z","1.0.0":"2020-04-26T18:32:25.538Z"},"users":{},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"repository":{"type":"git","url":"git://github.com/iocmd/wait.git"},"versions":{"2.1.0":{"name":"@iocmd/wait","version":"2.1.0","type":"commonjs","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"promisified setTimeout","homepage":"http://github.com/iocmd/wait","main":"lib/wait.js","repository":{"type":"git","url":"git://github.com/iocmd/wait.git"},"keywords":["timeout","promise","async","await"],"scripts":{"test":"madrun test","coverage":"madrun coverage","lint":"madrun lint","fix:lint":"madrun fix:lint","report":"madrun report","watcher":"madrun watcher","watch:test":"madrun watch:test","watch:lint":"madrun watch:lint","watch:tape":"madrun watch:tape","watch:coverage:base":"madrun watch:coverage:base","watch:coverage:tape":"madrun watch:coverage:tape","watch:coverage":"madrun watch:coverage"},"dependencies":{},"license":"MIT","devDependencies":{"coveralls":"^3.0.2","eslint":"^8.12.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.8.0","madrun":"^9.0.2","nodemon":"^2.0.2","nyc":"^15.0.0","putout":"^25.14.0","supertape":"^7.2.1"},"engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"7784b687c28ceec5c96cc48d62d9ce1b2e67762d","bugs":{"url":"https://github.com/iocmd/wait/issues"},"_id":"@iocmd/wait@2.1.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"ac91bc32e84955d161e808844da4607000d1c096","size":2248,"noattachment":false,"key":"/@iocmd/wait/-/@iocmd/wait-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@iocmd/wait/download/@iocmd/wait-2.1.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wait_2.1.0_1649273431167_0.814612212822206"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-06T23:20:57.820Z","publish_time":1649273431541,"_cnpm_publish_time":1649273431541},"2.0.0":{"name":"@iocmd/wait","version":"2.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"promisified setTimeout","homepage":"http://github.com/iocmd/wait","main":"lib/wait.js","repository":{"type":"git","url":"git://github.com/iocmd/wait.git"},"nyc":{"exclude":[".madrun.js","test"]},"keywords":["timeout","promise","async","await"],"scripts":{"test":"madrun test","coverage":"madrun coverage","lint":"madrun lint","fix:lint":"madrun fix:lint","report":"madrun report","watcher":"madrun watcher","watch:test":"madrun watch:test","watch:lint":"madrun watch:lint","watch:tape":"madrun watch:tape","watch:coverage:base":"madrun watch:coverage:base","watch:coverage:tape":"madrun watch:coverage:tape","watch:coverage":"madrun watch:coverage"},"dependencies":{},"license":"MIT","devDependencies":{"coveralls":"^3.0.2","eslint":"^8.12.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^14.8.0","madrun":"^9.0.2","nodemon":"^2.0.2","nyc":"^15.0.0","putout":"^25.14.0","supertape":"^7.2.1"},"engines":{"node":">=16"},"publishConfig":{"access":"public"},"gitHead":"f9f64059795a54afcd24cfc41fe2404dfb361859","bugs":{"url":"https://github.com/iocmd/wait/issues"},"_id":"@iocmd/wait@2.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.3.0","dist":{"shasum":"282a7da9bdd37c7f5eb898933608ed736905c755","size":2279,"noattachment":false,"key":"/@iocmd/wait/-/@iocmd/wait-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@iocmd/wait/download/@iocmd/wait-2.0.0.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wait_2.0.0_1649272640047_0.1382074361414607"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-04-06T23:20:57.032Z","publish_time":1649272640206,"_cnpm_publish_time":1649272640206},"1.0.0":{"name":"@iocmd/wait","version":"1.0.0","author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"description":"promisified setTimeout","homepage":"http://github.com/iocmd/wait","main":"lib/wait.js","repository":{"type":"git","url":"git://github.com/iocmd/wait.git"},"nyc":{"exclude":[".madrun.js","test"]},"keywords":["timeout","promise","async","await"],"scripts":{"test":"madrun test","coverage":"madrun coverage","lint":"madrun lint","fix:lint":"madrun fix:lint","report":"madrun report","watcher":"madrun watcher","watch:test":"madrun watch:test","watch:lint":"madrun watch:lint","watch:tape":"madrun watch:tape","watch:coverage:base":"madrun watch:coverage:base","watch:coverage:tape":"madrun watch:coverage:tape","watch:coverage":"madrun watch:coverage"},"dependencies":{},"license":"MIT","devDependencies":{"@cloudcmd/stub":"^2.3.1","coveralls":"^3.0.2","eslint":"^6.1.0","eslint-plugin-node":"^11.0.0","eslint-plugin-putout":"^3.0.0","madrun":"^5.0.0","nodemon":"^2.0.2","nyc":"^15.0.0","putout":"^7.0.2","redrun":"^7.0.0","supertape":"^1.2.3"},"engines":{"node":">=8"},"publishConfig":{"access":"public"},"gitHead":"bc2a79f824fada3a27348da66a608bf277bdd1b9","bugs":{"url":"https://github.com/iocmd/wait/issues"},"_id":"@iocmd/wait@1.0.0","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"5a2bc531049de14f5e67c72ea0631e85b176a7af","size":2186,"noattachment":false,"key":"/@iocmd/wait/-/@iocmd/wait-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@iocmd/wait/download/@iocmd/wait-1.0.0.tgz"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wait_1.0.0_1587925945411_0.13393175631655785"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T21:18:25.214Z","publish_time":1587925945538,"_cnpm_publish_time":1587925945538}},"readme":"# Wait [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage Status][CoverageIMGURL]][CoverageURL]\n\nPromisified `setTimeout`\n\n## Install\n\n`npm i @iocmd/wait`\n\n## Example\n\n```js\nawait wait(console.log, 'hello');\n// log \"hello\" in next loop\n\nawait wait(1000, console.log, 'hello');\n// log \"hello\" in a second\n\nawait wait(1000);\n// wait for a second\n```\n\n## Related\n\n- [hold-up](https://github.com/iocmd/hold-up \"hold-up\") - setInterval with promises, counter and error handling\n\n- [currify](https://github.com/coderaiser/currify \"currify\") - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments\n\n- [fullstore](https://github.com/coderaiser/fullstore \"fullstore\") - functional variables\n\n- [wraptile](https://github.com/coderaiser/wraptile \"wraptile\") - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments\n\n## License\n\nMIT\n\n[NPMIMGURL]: https://img.shields.io/npm/v/@iocmd/wait.svg?style=flat\n[BuildStatusIMGURL]: https://travis-ci.com/iocmd/wait.svg?branch=master\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]: https://npmjs.org/package/@iocmd/wait \"npm\"\n[BuildStatusURL]: https://travis-ci.com/iocmd/wait \"Build Status\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]: https://coveralls.io/github/iocmd/wait?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/iocmd/wait/badge.svg?branch=master&service=github\n","_attachments":{},"homepage":"http://github.com/iocmd/wait","bugs":{"url":"https://github.com/iocmd/wait/issues"},"license":"MIT"}