{"id":16125496,"url":"https://github.com/semibran/async-map","last_synced_at":"2025-04-06T13:12:35.614Z","repository":{"id":57185666,"uuid":"93363493","full_name":"semibran/async-map","owner":"semibran","description":"Transform each value in an array asynchronously","archived":false,"fork":false,"pushed_at":"2018-03-18T19:06:09.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T19:50:51.090Z","etag":null,"topics":["async","map"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/semibran.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-05T04:01:59.000Z","updated_at":"2018-03-18T19:06:10.000Z","dependencies_parsed_at":"2022-09-06T05:42:25.565Z","dependency_job_id":null,"html_url":"https://github.com/semibran/async-map","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fasync-map","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fasync-map/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fasync-map/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Fasync-map/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semibran","download_url":"https://codeload.github.com/semibran/async-map/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485291,"owners_count":20946398,"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","map"],"created_at":"2024-10-09T21:29:49.121Z","updated_at":"2025-04-06T13:12:35.591Z","avatar_url":"https://github.com/semibran.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# async-map\n\u003e transform multiple values asynchronously in parallel\n\n## install\n[![npm badge]][npm package]\n\n```sh\nnpm install async-map\n```\n\n## usage\n```js\nconst asyncMap = require('async-map')\nconst loadImage = require('img-load')\n\nlet paths = ['images/foo.png', 'images/bar.png']\nasyncMap(paths, loadImage, (err, images) =\u003e {\n  if (err) throw err\n  for (let image of images) {\n    document.body.appendChild(image)\n  }\n})\n```\n\n### `asyncMap(values, iterator, callback)`\nPerforms `iterator` on each value in `values` in parallel, and passes the result into `callback` when complete.\n* `values`: An array of values to be transformed\n* `iterator(value, callback)`: Any function that receives a value and a callback, e.g. [`fs.stat(path, callback)`](https://nodejs.org/api/fs.html#fs_fs_stat_path_callback)\n* `callback(err, result)`: The function called upon completion or abortion of the mapping process\n\n[npm package]: https://www.npmjs.org/package/async-map\n[npm badge]:   https://nodei.co/npm/async-map.png?mini\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fasync-map","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemibran%2Fasync-map","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Fasync-map/lists"}