{"id":20496495,"url":"https://github.com/justforuse/promise-limit-all","last_synced_at":"2025-06-11T06:05:54.754Z","repository":{"id":45213774,"uuid":"405388661","full_name":"justforuse/promise-limit-all","owner":"justforuse","description":"Promise all, but with max limit","archived":false,"fork":false,"pushed_at":"2021-12-31T07:36:00.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T20:05:04.964Z","etag":null,"topics":["javascript","promise","promise-all"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/s/promise-limit-all-demo-v80u1","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/justforuse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-11T13:37:53.000Z","updated_at":"2021-12-31T07:36:02.000Z","dependencies_parsed_at":"2022-09-02T08:50:58.326Z","dependency_job_id":null,"html_url":"https://github.com/justforuse/promise-limit-all","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/justforuse%2Fpromise-limit-all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justforuse%2Fpromise-limit-all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justforuse%2Fpromise-limit-all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justforuse%2Fpromise-limit-all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justforuse","download_url":"https://codeload.github.com/justforuse/promise-limit-all/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justforuse%2Fpromise-limit-all/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258552971,"owners_count":22719394,"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":["javascript","promise","promise-all"],"created_at":"2024-11-15T18:07:26.809Z","updated_at":"2025-06-11T06:05:54.722Z","avatar_url":"https://github.com/justforuse.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Promise Limit All\n\n[![npm](https://img.shields.io/npm/v/promise-limit-all.svg) ![npm](https://img.shields.io/npm/dm/promise-limit-all.svg)](https://www.npmjs.com/package/promise-limit-all)\n\nThis package let you control the number of async function at the same time\n\n[Codesandbox](https://codesandbox.io/s/promise-limit-all-demo-v80u1)\n\n## Demo\n\n```js\nconst promiseLimitAll = require('promise-limit-all');\n\nconst promiseFactory = (res, timeout) =\u003e {\n    return () =\u003e\n        new Promise((resolve) =\u003e {\n            setTimeout(() =\u003e {\n                resolve(res);\n            }, timeout);\n        });\n};\n\npromiseLimitAll(\n    [\n        promiseFactory(1, 1000),\n        promiseFactory(2, 2000),\n        promiseFactory(3, 2000),\n        promiseFactory(4, 1000),\n        promiseFactory(5, 1000),\n        promiseFactory(6, 500),\n        promiseFactory(7, 500)\n    ],\n    3\n).then((res) =\u003e {\n    const str = res.join(\",\");\n    console.log(str);\n});\n```\n\nOutput: \n```\n1,2,3,4,5,6,7\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustforuse%2Fpromise-limit-all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustforuse%2Fpromise-limit-all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustforuse%2Fpromise-limit-all/lists"}