{"_id":"p-auto","_rev":"3-203f3ba2428d524d2214dd075f416209","name":"p-auto","description":"Like `async.auto()` but for `Promise`","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"p-auto","version":"1.0.0","description":"Like `async.aout()` but for `Promise`","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/DerTieran/p-auto.git"},"author":{"name":"Philipp Beck","email":"dertieran@gmail.com"},"license":"MIT","engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","auto","tasks","flow","async","await","promises"],"dependencies":{"p-defer":"^1.0.0","p-props":"^1.0.0"},"devDependencies":{"ava":"^0.22.0","delay":"^2.0.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"a37bd12fc58df6b2d74ab3b29997da6484298d5d","bugs":{"url":"https://github.com/DerTieran/p-auto/issues"},"homepage":"https://github.com/DerTieran/p-auto#readme","_id":"p-auto@1.0.0","_npmVersion":"5.4.2","_nodeVersion":"6.11.3","_npmUser":{"name":"dertieran","email":"dertieran@gmail.com"},"dist":{"integrity":"sha512-RYPoFAY66FbOI8iKUq5GNmAT8JEMm3lNh6xMMYcxo6eV9/GnQDMD95Ig8FoRpJ4buTpSvIokEBFy7Wtks219EA==","shasum":"d4f7881d72e08e2756750ed4a080fa9c6da81c0d","tarball":"https://registry.npmjs.org/p-auto/-/p-auto-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAlPZZDF8h7ik91KpQdR0qPovonabmyjMEjqSjRkkI1IAiEA4AHpXCSvghWMQqvWRtYSVJLb1NKAOygb6qzfnOlSaHc="}]},"maintainers":[{"name":"dertieran","email":"dertieran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-auto-1.0.0.tgz_1506374231880_0.6918465001508594"}},"1.0.1":{"name":"p-auto","version":"1.0.1","description":"Like `async.auto()` but for `Promise`","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/DerTieran/p-auto.git"},"author":{"name":"Philipp Beck","email":"dertieran@gmail.com"},"license":"MIT","engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","auto","tasks","flow","async","await","promises"],"dependencies":{"p-defer":"^1.0.0","p-props":"^1.0.0"},"devDependencies":{"ava":"^0.22.0","delay":"^2.0.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"4af90ea6bc1c12eef9ce2c23aa95620c53981faf","bugs":{"url":"https://github.com/DerTieran/p-auto/issues"},"homepage":"https://github.com/DerTieran/p-auto#readme","_id":"p-auto@1.0.1","_npmVersion":"5.4.2","_nodeVersion":"6.11.3","_npmUser":{"name":"dertieran","email":"dertieran@gmail.com"},"dist":{"integrity":"sha512-P7+nSlP6SUIp05JT64CeEzEmsq9Bq3dLujNE55+Rytw7giR1Dw97k4DyxnVNAfuLFbH7L7VaHpBFAkYMj5UTFQ==","shasum":"542aabfd0fb6b0a6cd467115d982fc7066949f53","tarball":"https://registry.npmjs.org/p-auto/-/p-auto-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdMm35+YESv2WzgEwUkp/a8elERTqg7rRFXPGc9U7HfAiEA8K5LFd80IE4WnJ8TgSD8S3/tOLCc7Py6Z0aOvqUa+K4="}]},"maintainers":[{"name":"dertieran","email":"dertieran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-auto-1.0.1.tgz_1506374349828_0.13425862160511315"}},"1.1.0":{"name":"p-auto","version":"1.1.0","description":"Like `async.auto()` but for `Promise`","main":"index.js","repository":{"type":"git","url":"git+ssh://git@github.com/DerTieran/p-auto.git"},"author":{"name":"Philipp Beck","email":"dertieran@gmail.com"},"license":"MIT","engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["promise","auto","tasks","flow","async","await","promises"],"dependencies":{"p-defer":"^1.0.0","p-props":"^1.0.0"},"devDependencies":{"ava":"^0.22.0","delay":"^2.0.0","xo":"^0.18.2"},"xo":{"space":true},"gitHead":"9759296436eca30468371a4e03ad11e0747f9312","bugs":{"url":"https://github.com/DerTieran/p-auto/issues"},"homepage":"https://github.com/DerTieran/p-auto#readme","_id":"p-auto@1.1.0","_npmVersion":"5.4.2","_nodeVersion":"6.11.3","_npmUser":{"name":"dertieran","email":"dertieran@gmail.com"},"dist":{"integrity":"sha512-1tX756mki5KOVUEAIr4KqQVGkyGkIbB2ozXvrOvkh2BuwFTWVucfddC8AYfYcJZ2MrqQjdp9Lh2Pg7KHTThSBA==","shasum":"3a9c89396303cad0e75a46420a2b9a3ea15c81e1","tarball":"https://registry.npmjs.org/p-auto/-/p-auto-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4nt7D03ChgP6CyRVuim+GVrSqF5sCXgXYsT1tp2+J6AiEAswMQd+PlFnvACYqj0MXO8cCv5w4QQdV15aN8ftCw8vI="}]},"maintainers":[{"name":"dertieran","email":"dertieran@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-auto-1.1.0.tgz_1506408271583_0.7783872394356877"}}},"readme":"# p-auto [![Build Status](https://travis-ci.org/DerTieran/p-auto.svg?branch=master)](https://travis-ci.org/DerTieran/p-auto)\n> Like [`async.auto()`](https://caolan.github.io/async/docs.html#auto) but for `Promise`\n\nUseful when you need to run multiple promises concurrently which have different dependencies between each other.\n\n## Install\n\n```sh\n$ npm install --save p-auto\n```\n\n\n## Usage\n\n```js\nconst pAuto = require('p-auto');\n\nconst tasks = {\n  foo: 1,\n  bar: () => Promise.resolve(2),\n  faz: ['foo', 'bar', result => result.foo + result.bar]\n};\n\npAuto(tasks).then(result => {\n  console.log(result);\n  //=> {foo: 1, bar: 2, faz: 3}\n});\n```\n\n\n## API\n\n### pAuto(tasks)\n\nReturns a `Promise` that is fulfilled when all `tasks` are fulfilled, or rejects if any of the `tasks` reject. The fulfilled value is the same as `tasks`, but with a fulfilled version of each entry value.\n\n#### tasks\n\nType: `Object`\n\nThe entry value can either be a `resolver` or an array of dependencies, with the `resolver` being the last value. A `resolver` can either be a value or a function that will be passed the result of the defined dependencies.\n\n## Related\n\n- [p-props](https://github.com/sindresorhus/p-props) - Like `Promise.all()` but for `Map` and `Object`\n- [p-defer](https://github.com/sindresorhus/p-defer) - Create a deferred promise\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n\n## License\n\n[MIT](https://github.com/DerTieran/p-auto/blob/master/license)\n","maintainers":[{"name":"dertieran","email":"dertieran@gmail.com"}],"time":{"modified":"2022-05-12T10:26:48.298Z","created":"2017-09-25T21:17:14.094Z","1.0.0":"2017-09-25T21:17:14.094Z","1.0.1":"2017-09-25T21:19:11.347Z","1.1.0":"2017-09-26T06:44:32.517Z"},"homepage":"https://github.com/DerTieran/p-auto#readme","keywords":["promise","auto","tasks","flow","async","await","promises"],"repository":{"type":"git","url":"git+ssh://git@github.com/DerTieran/p-auto.git"},"author":{"name":"Philipp Beck","email":"dertieran@gmail.com"},"bugs":{"url":"https://github.com/DerTieran/p-auto/issues"},"license":"MIT","readmeFilename":"readme.md"}