{"id":15439772,"url":"https://github.com/bcherny/mapf","last_synced_at":"2025-03-28T06:40:59.962Z","repository":{"id":66101185,"uuid":"78895704","full_name":"bcherny/mapf","owner":"bcherny","description":"Ergonomic Promise.all","archived":false,"fork":false,"pushed_at":"2017-01-31T21:47:11.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-17T03:03:24.513Z","etag":null,"topics":["async","functional-programming","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bcherny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-13T23:45:05.000Z","updated_at":"2017-01-13T23:45:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"948b5e0b-442a-48f4-85ee-1e8cbf8ad80c","html_url":"https://github.com/bcherny/mapf","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"2a8b22dac32c9527b6d2b671592987478a98c68f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcherny%2Fmapf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcherny%2Fmapf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcherny%2Fmapf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcherny%2Fmapf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcherny","download_url":"https://codeload.github.com/bcherny/mapf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245984561,"owners_count":20704794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","functional-programming","typescript"],"created_at":"2024-10-01T19:09:24.464Z","updated_at":"2025-03-28T06:40:59.940Z","avatar_url":"https://github.com/bcherny.png","language":"TypeScript","readme":"# mapf [![Build Status](https://img.shields.io/circleci/project/bcherny/mapf.svg?branch=master\u0026style=flat-square)](https://circleci.com/gh/bcherny/mapf) [![NPM](https://img.shields.io/npm/v/mapf.svg?style=flat-square)](https://www.npmjs.com/package/mapf) [![MIT](https://img.shields.io/npm/l/mapf.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n\n\u003e Ergonomic `Promise.all`\n\n## Installation\n\n```sh\nnpm install mapf --save\n```\n\n## Usage\n\n```js\nimport { mapf } from 'mapf'\n\nconst [a, b, c] = await mapf([1, 2, 3], async _ =\u003e await foo(_))\n```\n\n## Rationale\n\n```js\n// before\nconst [a, b, c] = await Promise.all([1, 2, 3].map(async _ =\u003e await foo(_)))\n\n// after\nconst [a, b, c] = await mapf([1, 2, 3], async _ =\u003e await foo(_)))\n```\n\n## Tests\n\n```sh\nnpm test\n```\n\n## License\n\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcherny%2Fmapf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcherny%2Fmapf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcherny%2Fmapf/lists"}