{"id":20407720,"url":"https://github.com/anywhichway/map","last_synced_at":"2025-03-05T02:27:57.828Z","repository":{"id":65148805,"uuid":"584121699","full_name":"anywhichway/map","owner":"anywhichway","description":"Map for any iterable","archived":false,"fork":false,"pushed_at":"2023-01-04T17:19:19.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-04T11:42:34.294Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/anywhichway.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":"2023-01-01T13:15:15.000Z","updated_at":"2023-01-04T21:50:28.000Z","dependencies_parsed_at":"2023-02-02T19:17:04.175Z","dependency_job_id":null,"html_url":"https://github.com/anywhichway/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/anywhichway%2Fmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anywhichway%2Fmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anywhichway%2Fmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anywhichway%2Fmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anywhichway","download_url":"https://codeload.github.com/anywhichway/map/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241952715,"owners_count":20048041,"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":[],"created_at":"2024-11-15T05:25:54.859Z","updated_at":"2025-03-05T02:27:57.809Z","avatar_url":"https://github.com/anywhichway.png","language":"JavaScript","readme":"# map\nMap for any iterable, promised iterable, or item that can be converted into an iterable.\n\n# Usage\n\n```javascript\nawait map(item,func,what=\"values\")\n```\n\nThe 'item' could be a generator, async generator, Set, etc.\n\n# How It Works\n\n1. awaits `item` so that if it is a Promise, it resolves\n2. tries to use\n   1. native `map` on `item\n   2. `for await(value of await item)` directly on the `item`\n   3. `for await()` on the result of calling the method with the `what` name on item or if `what` is a function its return value when passed `item`\n   4. `for await()` on the result of using native `forEach`, if available on item, to collect values from `item`\n\n# Release History (Reverse Chronological Order)\n\n2023-01-04 v1.0.0 Added unit tests, 95.83% test coverage\n\n2023-01-01 v0.0.1 Initial public release\n  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanywhichway%2Fmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanywhichway%2Fmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanywhichway%2Fmap/lists"}