{"id":17384337,"url":"https://github.com/tsertkov/masynco","last_synced_at":"2026-04-24T21:33:59.921Z","repository":{"id":43859024,"uuid":"456234719","full_name":"tsertkov/masynco","owner":"tsertkov","description":"massive async operations 🚙","archived":false,"fork":false,"pushed_at":"2023-07-05T07:42:35.000Z","size":82,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-20T17:19:26.403Z","etag":null,"topics":["async","limit","mapreduce","nodejs"],"latest_commit_sha":null,"homepage":"https://tsertkov.github.io/masynco/","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/tsertkov.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-06T18:22:20.000Z","updated_at":"2023-07-05T07:24:49.000Z","dependencies_parsed_at":"2024-12-06T19:44:09.600Z","dependency_job_id":"4800041d-8ea0-4ffe-9297-15ae065ee480","html_url":"https://github.com/tsertkov/masynco","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/tsertkov/masynco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fmasynco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fmasynco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fmasynco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fmasynco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsertkov","download_url":"https://codeload.github.com/tsertkov/masynco/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsertkov%2Fmasynco/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","limit","mapreduce","nodejs"],"created_at":"2024-10-16T07:45:12.427Z","updated_at":"2026-04-24T21:33:59.893Z","avatar_url":"https://github.com/tsertkov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# masynco\n\n\u003e massive async operations powered by [Promise.all](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)\n\nMinimal async map/reduce helper with pluggable limit to handle massive amount of asynchronous operations in node and browser.\n\n## Usage\n\n```javascript\n// const masynco = require('masynco') // cjs and mjs are supported\nimport masynco from 'masynco'\n\n;(async () =\u003e {\n  // supports async and regular functions\n  const fn = async (num) =\u003e num + 1\n\n  // supports async array mapping\n  const a = await masynco([1, 2, 3], fn)\n  console.log(a) // [ 2, 3, 4 ]\n\n  // supports async object mapping\n  const o = await masynco({ 'k1': 'v1', 'k2': 'v2' }, fn)\n  console.log(o) // { k1: 'v11', k2: 'v21' }\n\n  // supports regular (non-async) functions also\n  const fnSync = (num) =\u003e num + 1\n  const o1 = await masynco({ 'k1': 'v1', 'k2': 'v2' }, fnSync)\n  console.log(o1) // { k1: 'v11', k2: 'v21' }\n})()\n```\n\nOptionally `limit` function can be passed for concurrency control:\n\n```javascript\nimport masynco from 'masynco'\nimport plimit from 'p-limit'\n\n;(async () =\u003e {\n  const fn = async (num) =\u003e num + 1\n  const o = await masynco({ 'k1': 'v1', 'k2': 'v2' }, fn, plimit(3))\n  console.log(o) // { k1: 'v11', k2: 'v21' }\n})()\n```\n\nUse in browser as JavaScript module:\n\n```html\n\u003cscript type=\"module\"\u003e\n  import masynco from './masynco.js'\n\n  ;(async () =\u003e {\n    const fn = async (num) =\u003e num + 1\n    const o = await masynco({ 'k1': 'v1', 'k2': 'v2' }, fn)\n    console.log(o) // { k1: 'v11', k2: 'v21' }\n  })()\n\u003c/script\u003e\n```\n\n## API\n\n### async masynco(input, fn, limit = null)\n\nReturns a new Array or Object formed by applying a given function to each element of input.\n\n#### iterable\n\nType: `object`, `array`\n\nInput Array or Object to process. Function returns array when input is array and object otherwise.\n\n#### fn\n\nType: `function (value, key)`\n\nFunction that is called for every element of input iterable. It receives original `value` and `key` and returns new value that is inserted into output iterable.\n\n#### limit\n\nType: `function`\n\nOptional limit function for concurrency control. See `p-limit`.\n\n## Why?\n\nSingle interface for applying regular and async map function to every item of input iterable and returning new iterable with original keys and mapped values.\n\n\" It saves my time, Al\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsertkov%2Fmasynco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsertkov%2Fmasynco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsertkov%2Fmasynco/lists"}