{"id":22092185,"url":"https://github.com/pirxpilot/run-each-limit","last_synced_at":"2025-03-23T23:45:24.379Z","repository":{"id":57155275,"uuid":"91190824","full_name":"pirxpilot/run-each-limit","owner":"pirxpilot","description":"Run an async task for each array element in parallel, but limit the number of tasks executing at the same time.","archived":false,"fork":false,"pushed_at":"2024-02-13T21:15:56.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-03T05:36:20.767Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pirxpilot.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2017-05-13T17:20:15.000Z","updated_at":"2024-02-13T21:07:39.000Z","dependencies_parsed_at":"2022-08-26T08:30:50.905Z","dependency_job_id":null,"html_url":"https://github.com/pirxpilot/run-each-limit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Frun-each-limit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Frun-each-limit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Frun-each-limit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Frun-each-limit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirxpilot","download_url":"https://codeload.github.com/pirxpilot/run-each-limit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245186925,"owners_count":20574554,"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-12-01T03:08:36.788Z","updated_at":"2025-03-23T23:45:24.344Z","avatar_url":"https://github.com/pirxpilot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version][npm-image]][npm-url]\n[![Build Status][build-image]][build-url]\n[![Dependency Status][deps-image]][deps-url]\n\n# run-each-limit\n\nRun an async task for each array element in parallel, but limit the number of tasks executing at the same time.\n\n## Install\n\n```sh\n$ npm install --save run-each-limit\n```\n\n## Usage\n\n```js\nvar eachLimit = require('run-each-limit');\n\nvar items = ['a', 'b', 'c', 'd'];\nvar result = '';\n\nfunction onItem(item, fn) {\n  result += item;\n  setTimeout(fn, 200);\n}\n\neachLimit(items, 2, onItem, function(err) {\n  console.log(result); // 'abcd'\n});\n\n```\n\n## License\n\nMIT © [Damian Krzeminski](https://pirxpilot.me)\n\n[npm-image]: https://img.shields.io/npm/v/run-each-limit\n[npm-url]: https://npmjs.org/package/run-each-limit\n\n[build-url]: https://github.com/pirxpilot/run-each-limit/actions/workflows/check.yaml\n[build-image]: https://img.shields.io/github/actions/workflow/status/pirxpilot/run-each-limit/check.yaml?branch=main\n\n[deps-image]: https://img.shields.io/librariesio/release/npm/run-each-limit\n[deps-url]: https://libraries.io/npm/run-each-limit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Frun-each-limit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirxpilot%2Frun-each-limit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Frun-each-limit/lists"}