{"_id":"@iocmd/wait","_rev":"3-1cb26d0dfa345c88ebd1e8ad9dbd98d0","name":"@iocmd/wait","dist-tags":{"latest":"2.1.0"},"versions":{"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":{"integrity":"sha512-acfhas+Kdgu/rNC59W7BuD+wrzpp9Bd8WBS+FGwZu2twfyMFuotzRrHb1/YZvwiFVApE1mc4nVaGdPFdx3kzww==","shasum":"5a2bc531049de14f5e67c72ea0631e85b176a7af","tarball":"https://registry.npmjs.org/@iocmd/wait/-/wait-1.0.0.tgz","fileCount":4,"unpackedSize":4829,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepdO5CRA9TVsSAnZWagAAuzQP/j4XLtz7a1WutKYPcrzS\ndLUowSceXAn1x/QRC42ExDRZZdgjyKN9nQOyi92aBwYSmaLI6Oybz1GKhJLr\nlKBbsCfk2sXaJ5wjvDoMb9JesOxoROY+5Ee8GpvyozEHsy2hzs1bzxsKgXM6\nJvZFC/rP8C70sekJe+Ocxzudjxh2qTZAd0eZfSsDPPuLUoXgBUJdfuwQOeza\nWsanRfyjFbkxKsaDQzDR0XH+qiSeV+O1jltnPzF50IBfbvcdMTd5t3hLkN0W\nOoFPtN5sfRVO5VSTQaFVv0icAOt/NsHOu8crhGUR8mdEApYu1ONyGGeIQ5AX\nXG39NN6icqxBSzMUXyAH6vE4bn6ZqC0zGkPVkqUNV2ZjUprkCcagiz96C/4n\njdWnVN5kv4l8ICgUvUC9lACHtSZ08tPFlwwv6HXUiiRUKQ1Yq8v+m5F3qFBF\nSAlicbAha1vEcbv+1wjeM93r3eefv4YOOMbQ8uHHSJWwcu3BfZ1QvIXNou/Z\ndgSgzx1hX+8DV6X6bRTAS0dlJVfcFjsBQVJ9Nk49TAvHVWsdfUBQpA3vVBQA\nP4mEJn39J2a0FfNoJHttaL6iqWPJ+3dcn9TphWpB8/mtZvn7uCTEAYcvDnZA\na7YAEmqdY0j+79QjqozPapY9gmHwP/ZMzUwHcLhFXTJUs7dPaROfWOEv1OvC\ne+6t\r\n=yngv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEuwE1r1Dorw91tvF2isinHwkefb2HdBkiDnqwjYz1VkAiEAtskTkQGGZ8qrkw/+wSUleq/hjwBw6KuQCABclwbF7No="}]},"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},"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":{"integrity":"sha512-spks9bwGt1fDL37eRXrzyf091cLiPFTSd7QV01P5LyIviPMv36dw14zh/vUz+EyZ1HSceiT8xHMfKC/Bki5H5g==","shasum":"282a7da9bdd37c7f5eb898933608ed736905c755","tarball":"https://registry.npmjs.org/@iocmd/wait/-/wait-2.0.0.tgz","fileCount":5,"unpackedSize":4994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBdZVQ61AYhq5tUiTjVpG0wtQklMaXFIJLVNaplWKahvAiEA3T9GxC/T6+iZ6KLRyN7BwTX+oSDRqzn4Fdd3H1580XY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTedAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqd2BAAhFhZFeqZPJem0jNR7Rsgd/mOh9R++xZdMjsPSS0TZGPeQ4Z1\r\nUE5oNT/qpUK2Xy1Qc8Q/8GrAHazPH0EvVlmvkqY0YMsmqMKLVkAB9Q96SdiC\r\nr97wmO2/GiLfOsvnV4jq+rD9H0YZRNfTORO0Ttole5RVmMb9+Bb1XeIqD/4c\r\nGM/5dINvSNk8TZ3ijcEV89h4huIq0+AMcGNsC5f/2b4q7MgRwFH0Gl6zlJZ+\r\nWkgLmzvEbMhrEDs2Pgee2bySexH67cs/oG/KnYEPLGw3U9IJPkYCrxs9V/nF\r\nhjPayAwT3Uc4C0EGpnttGhEl8wu5gUrEoR90CC3qTCiFRbJvGvgfgAy5+EzF\r\nrLqHXK9yXAM4h97WSODe0GY7pQp5xSlsx7ojbx8rMPwnep6mvY+O5MVhemZh\r\nrGfNzhlJssKHVrnL6p2FFt/B9Q+jzSVpkMrPnKY+8U9fVZZo+Qvq2Xr3tBNC\r\nRA55GflsFlqb8y6mRiMaed6x7PDsJznR6vgaDv31Q7SKnlgA2zj8pchYv4yM\r\nZhBxZ3PEoMrSrhiu2Mrpl0dy40UCP9dkUKEKEp94PtPNxePwWNUa67XJCBdx\r\ndyePIPqJ9AmodtoOqnPp24YOWRhQFr7LFUqrFMntUE95OWWGr67BgXNHAsEf\r\n3eJL38jKWkcEEhQT3/6Ed3DloJulZyqm0HU=\r\n=YgAG\r\n-----END PGP SIGNATURE-----\r\n"},"_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},"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":{"integrity":"sha512-EmDC42xKhDXqtO7P9043+426TeOisp6b1RsryVgY9bJBA9bSi65R+KkwCt3EmBuEhP5dQ6pl6fMdUDNQz4YDtg==","shasum":"ac91bc32e84955d161e808844da4607000d1c096","tarball":"https://registry.npmjs.org/@iocmd/wait/-/wait-2.1.0.tgz","fileCount":5,"unpackedSize":4768,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRT0GtHOEe9Ek/ex2ndwaj76YFYrS0HqEuviO4fbdFygIgNzMojpboICNJGIv2WcARb75d++OU7/WO0WCf0mlDoGs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTepXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolxBAAoRTOXag2AJH/+OVWgjvlkVBCIAR2hInoYugxQPhl0REfKOno\r\npDPzGyMKh5QBSSXGBenjbiB8ma0j8ktZ5IJ61/XELynq7B2xTMMrDZtVKo/Z\r\n/RKGcA4UuSEDZFJ/TBYr5+Sb/p6l5+jDn0bvIOM2c70iRvMleXqHPhW79dAW\r\nFyo9XyObBd4o3iC4g4q34045tYUTo9plEqDEQ/JM6skksIzOI/1C5zF9Ktt4\r\npTZ7q6vSkGkkHU4CXu3uUKX1p4XgZ+V0M+IhehpbhvGu6mZwhMLiwg8XXszz\r\nRITVkqpqQ4Ohw5oLhrh6pU1qEAik91uXEFSUVYQWp1edhKSSDFb2qalshs1+\r\nXNR/nS7lADOwJS6o7xbtmsQE+iv/HNn26NgCUovBBrv40bLJ4g+1YAjYZ6jn\r\nWOjV7+wm2O/dWEogHauOy7hX4BA83w1l6ql/l1AjI9HCk6laiDyCyT9Hc98T\r\nCgr3QfmuwDEAI6Li4vUbKTY9d0z353u0T9HL1RVmdg+wK9vlj2V172miThRh\r\nQPh1HXWaU0EWNWv8xhZuYsSm1yPLyccFuYI7rRRCUNTC/V8wArTC0t88DKiv\r\ntRfsgaE3ycAyFZFv9BSaAUceUewvh6HtFk8li4zh/+IajgkmA8/tPXkSH8fv\r\nwDN+pwXkPZcxsF6uiN7nrtvDmR99RgJOj34=\r\n=aEfQ\r\n-----END PGP SIGNATURE-----\r\n"},"_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}},"time":{"created":"2020-04-26T18:32:25.237Z","1.0.0":"2020-04-26T18:32:25.538Z","modified":"2022-04-06T19:30:31.624Z","2.0.0":"2022-04-06T19:17:20.206Z","2.1.0":"2022-04-06T19:30:31.541Z"},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"description":"promisified setTimeout","homepage":"http://github.com/iocmd/wait","keywords":["timeout","promise","async","await"],"repository":{"type":"git","url":"git://github.com/iocmd/wait.git"},"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"https://github.com/coderaiser"},"bugs":{"url":"https://github.com/iocmd/wait/issues"},"license":"MIT","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","readmeFilename":"README.md"}