{"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":"http://registry-npm.ywwl.com/@iocmd/wait/download/@iocmd/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="}],"size":2186,"noattachment":false,"key":"/@iocmd/wait/-/@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,"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","publish_time":1587925945538,"_cnpm_publish_time":1587925945538,"dist-tags":{"latest":"2.1.0"}}