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