{"_id":"@0xbutterfield/p-props","_rev":"1-37a53672a3da3a5770e608df5f340ac6","name":"@0xbutterfield/p-props","dist-tags":{"latest":"5.0.1"},"versions":{"5.0.0":{"name":"@0xbutterfield/p-props","version":"5.0.0","description":"Like `Promise.all()` but for `Map` and `Object`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-props.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12.20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","props","map","object","values","properties","entries","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-map":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","delay":"^5.0.0","tsd":"^0.17.0","xo":"^0.40.2","prettier":"^2.8.8"},"prettier":{"semi":false,"trailingComma":"all","singleQuote":true},"types":"./index.d.ts","gitHead":"ec7adacf3472c87de70bf6316c68544ce909ba44","bugs":{"url":"https://github.com/sindresorhus/p-props/issues"},"homepage":"https://github.com/sindresorhus/p-props#readme","_id":"@0xbutterfield/p-props@5.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-Xl5vDceVhE6vNeIQ3css36FgEKevmOPeuSmC4k/uNghP1kmoN+oxgvomZX8y/PhKexoFYkNlxQy0tV+81npyfQ==","shasum":"b8010123ac50195e3c37a572d9cbba5b7aa80c1a","tarball":"https://registry.npmjs.org/@0xbutterfield/p-props/-/p-props-5.0.0.tgz","fileCount":5,"unpackedSize":4748,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGkdsdw+E1y9ZEi9l24JhNOEYPozVwX0MKn7dc4R7mJAIgEZpaJ82iPjl8wPN05Vt9aA6/IePK1wKXF10Tm+keUOc="}]},"_npmUser":{"name":"0xbutterfield","email":"b.butterfield@aura.finance"},"directories":{},"maintainers":[{"name":"0xbutterfield","email":"b.butterfield@aura.finance"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-props_5.0.0_1686904915533_0.014416762434051877"},"_hasShrinkwrap":false},"5.0.1":{"name":"@0xbutterfield/p-props","version":"5.0.1","description":"Like `Promise.all()` but for `Map` and `Object`","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-props.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12.20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["promise","props","map","object","values","properties","entries","async","await","promises","concurrently","concurrency","parallel","bluebird"],"dependencies":{"p-map":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","delay":"^5.0.0","tsd":"^0.17.0","xo":"^0.40.2","prettier":"^2.8.8"},"prettier":{"semi":false,"trailingComma":"all","singleQuote":true},"types":"./index.d.ts","gitHead":"3c0add2abca674b47bd3ca45be28d486861b0964","bugs":{"url":"https://github.com/sindresorhus/p-props/issues"},"homepage":"https://github.com/sindresorhus/p-props#readme","_id":"@0xbutterfield/p-props@5.0.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-WnDgOH4KrDNeoEyjad8/D9LBUqSCeL/B91BhkZmnJEnO5h2xpw2ENDyJH959Kz4AM0wM1L3YWG1ZxOliTdgnkw==","shasum":"a8547001bcddaf6433fd06d06a46a6a197145ad6","tarball":"https://registry.npmjs.org/@0xbutterfield/p-props/-/p-props-5.0.1.tgz","fileCount":5,"unpackedSize":4782,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEna5T2l7mjpouwJpm3xRifWm8UYeWUOz1bGzNwfH9t0AiBNr2jaaBVlGNayhRXRkcVFPCrJDO0y37oIXH6W9gnE5g=="}]},"_npmUser":{"name":"0xbutterfield","email":"b.butterfield@aura.finance"},"directories":{},"maintainers":[{"name":"0xbutterfield","email":"b.butterfield@aura.finance"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/p-props_5.0.1_1686907470497_0.9583951078428032"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-16T08:41:55.470Z","5.0.0":"2023-06-16T08:41:55.698Z","modified":"2023-06-16T09:24:30.839Z","5.0.1":"2023-06-16T09:24:30.677Z"},"maintainers":[{"name":"0xbutterfield","email":"b.butterfield@aura.finance"}],"description":"Like `Promise.all()` but for `Map` and `Object`","homepage":"https://github.com/sindresorhus/p-props#readme","keywords":["promise","props","map","object","values","properties","entries","async","await","promises","concurrently","concurrency","parallel","bluebird"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/p-props.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/p-props/issues"},"license":"MIT","readme":"# p-props\n\n> Like [`Promise.all()`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise/all) but for `Map` and `Object`\n\nUseful when you need to run multiple promises concurrently and keep track of the fulfilled values by name.\n\n## Install\n\n```\n$ npm install @0xbutterfield/p-props\n```\n\n## Usage\n\n```js\nimport pProps from 'p-props';\nimport got from 'got';\n\nconst fetch = async url => {\n\tconst {body} = await got(url);\n\treturn body;\n};\n\nconst sites = {\n\tava: fetch('https://avajs.dev'),\n\ttodomvc: fetch('https://todomvc.com'),\n\tgithub: fetch('https://github.com'),\n\tfoo: 'bar'\n};\n\nconsole.log(await pProps(sites));\n/*\n{\n\tava: '<!doctype …',\n\ttodomvc: '<!doctype …',\n\tgithub: '<!doctype …',\n\tfoo: 'bar'\n}\n*/\n```\n\n## API\n\n### pProps(map, options?)\n\nReturns a `Promise` that is fulfilled when all promises in `map` are fulfilled, or rejects if any of the promises reject. The fulfilled value is the same as `map`, but with a fulfilled version of each entry value.\n\n#### map\n\nType: `Map | object`\n\nResolves entry values that are promises. Other values are passed through.\n\n#### options\n\nType: `object`\n\nSee the [`p-map` options](https://github.com/sindresorhus/p-map#options).\n\n## Related\n\n- [p-all](https://github.com/sindresorhus/p-all) - Run promise-returning & async functions concurrently with optional limited concurrency\n- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently\n- [More…](https://github.com/sindresorhus/promise-fun)\n","readmeFilename":"readme.md"}