{"_id":"co-wrap-all","_rev":"3-dcbb3dd2db35aff2bda1976e083bf747","name":"co-wrap-all","description":"Call co.wrap for multiple generator functions","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"co-wrap-all","version":"1.0.0","description":"Call co.wrap for multiple generator functions","keywords":["co","coroutine","async","wrap","all","prototype","method","promise","promisify","generator"],"homepage":"https://github.com/connesc/co-wrap-all#readme","bugs":{"url":"https://github.com/connesc/co-wrap-all/issues"},"license":"MIT","author":{"name":"Cédric Connes","email":"cedric.connes@gmail.com"},"files":["index.js"],"repository":{"type":"git","url":"git+https://github.com/connesc/co-wrap-all.git"},"scripts":{"lint":"eslint ."},"dependencies":{"co":"^4.0.0"},"devDependencies":{"eslint":"^3.5.0","eslint-config-connesc":"^2.0.0"},"gitHead":"20486d25e4c75063bed73a9673860f1c1e1bf017","_id":"co-wrap-all@1.0.0","_shasum":"370ae3e8333510a53f6b2f7fdfbe4568a11b7ecf","_from":".","_npmVersion":"3.10.7","_nodeVersion":"6.5.0","_npmUser":{"name":"connesc","email":"cedric.connes@gmail.com"},"dist":{"shasum":"370ae3e8333510a53f6b2f7fdfbe4568a11b7ecf","tarball":"https://registry.npmjs.org/co-wrap-all/-/co-wrap-all-1.0.0.tgz","integrity":"sha512-aru6gLi2vTUazr+MxVm3Rv6ST7/EKtFj9BrfkcOrbCO2Qv6LqJdE71m88HhHiBEviKw/ucVrwoGLrq2xHpOsJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFJzSEvnuTlDsoPvRx3ruV84ynyhpYX2ntp6muIZOL99AiEA0rbkyOb/v0XhdCMC2x4EZn1FNz3sECb7/iuAzhnTDVk="}]},"maintainers":[{"name":"connesc","email":"cedric.connes@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/co-wrap-all-1.0.0.tgz_1473781022532_0.66489317570813"}}},"readme":"# co-wrap-all\n\n> Call co.wrap for multiple generator functions\n\nThis tiny helper allows to easily call `co.wrap` for multiple generator functions.  \nFor example:\n\n```javascript\n// Before\nmodule.exports = {\n    foo: co.wrap(foo),\n    bar: co.wrap(bar)\n};\n\n// After\nmodule.exports = wrapAll({foo, bar});\n```\n\nAlso, it is very convenient for defining asynchronous methods:\n\n```javascript\n// Common\nclass Foo {\n    * bar(arg) { /* ... */ }\n    * baz(arg) { /* ... */ }\n}\n\n// Before\nFoo.prototype.bar = co.wrap(Foo.prototype.bar);\nFoo.prototype.baz = co.wrap(Foo.prototype.baz);\n\n// After\nwrapAll(Foo.prototype);\n```\n\n## License\n\n[MIT](https://github.com/connesc/co-wrap-all/blob/master/LICENSE)\n","maintainers":[{"name":"connesc","email":"cedric.connes@gmail.com"}],"time":{"modified":"2022-06-13T06:23:56.632Z","created":"2016-09-13T15:37:04.426Z","1.0.0":"2016-09-13T15:37:04.426Z"},"homepage":"https://github.com/connesc/co-wrap-all#readme","keywords":["co","coroutine","async","wrap","all","prototype","method","promise","promisify","generator"],"repository":{"type":"git","url":"git+https://github.com/connesc/co-wrap-all.git"},"author":{"name":"Cédric Connes","email":"cedric.connes@gmail.com"},"bugs":{"url":"https://github.com/connesc/co-wrap-all/issues"},"license":"MIT","readmeFilename":"README.md"}