{"id":20050128,"url":"https://github.com/jersou/p_limit_cli_progress_deno","last_synced_at":"2026-01-24T07:34:01.799Z","repository":{"id":226305913,"uuid":"768294949","full_name":"jersou/p_limit_cli_progress_deno","owner":"jersou","description":"p-limit + cli-progress for deno","archived":false,"fork":false,"pushed_at":"2024-09-08T14:12:16.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T18:12:44.775Z","etag":null,"topics":["cli-progress","p-limit","progress"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jersou.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-06T20:29:39.000Z","updated_at":"2024-12-30T07:40:03.000Z","dependencies_parsed_at":"2024-09-08T15:36:01.070Z","dependency_job_id":"8645be2e-990c-4f88-acc2-5b6630813aca","html_url":"https://github.com/jersou/p_limit_cli_progress_deno","commit_stats":null,"previous_names":["jersou/p_limit_cli_progress_deno"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jersou%2Fp_limit_cli_progress_deno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jersou%2Fp_limit_cli_progress_deno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jersou%2Fp_limit_cli_progress_deno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jersou%2Fp_limit_cli_progress_deno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jersou","download_url":"https://codeload.github.com/jersou/p_limit_cli_progress_deno/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241481056,"owners_count":19969788,"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":["cli-progress","p-limit","progress"],"created_at":"2024-11-13T11:54:23.871Z","updated_at":"2026-01-24T07:34:01.746Z","avatar_url":"https://github.com/jersou.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# p-limit + cli-progress\n\nA simple example of usage of [p-limit](https://www.npmjs.com/package/p-limit) \u0026\n[cli-progress](https://www.npmjs.com/package/cli-progress) with deno :\n\n```typescript\nimport { plimitp } from \"jsr:@jersou/p-limit-cli-progress@0.2.0\";\n// or import { plimitp } from \"@jersou/p-limit-cli-progress\"; // after \"deno add @jersou/p-limit-cli-progress\"\n\nconst sleep = (ms) =\u003e new Promise((resolve) =\u003e setTimeout(resolve, ms));\nconst data = [...Array(100).keys()]\n  .map((i) =\u003e ({ title: `data ${i}`, value: Math.random() }));\n\nconst limitp = plimitp(10);\ndata.map(({ value, title }) =\u003e limitp(() =\u003e sleep(100 + value * 1000), title));\n```\n\nAnother example with several bar :\n\n![example_multibar.svg](example_multibar.svg)\n\n```typescript\n// example_multibar.ts\nimport {\n  createMultibar,\n  PlimitProgressBar,\n} from \"jsr:@jersou/p-limit-cli-progress@0.2.0\";\n// or from \"@jersou/p-limit-cli-progress\"; // after \"deno add @jersou/p-limit-cli-progress\"\n\nconst generateTestData = () =\u003e\n  [...Array(30).keys()]\n    .map((i) =\u003e ({ title: `data ${i}`, value: Math.random() }));\n\nconst data1 = generateTestData();\nconst data2 = generateTestData();\nconst data3 = generateTestData();\n\nconst sleep = (ms: number) =\u003e new Promise((resolve) =\u003e setTimeout(resolve, ms));\n\nconst multiBar = createMultibar();\nconst bar1 = new PlimitProgressBar(6, \"test 1\", multiBar);\nconst bar2 = new PlimitProgressBar(8, \"test 2\", multiBar);\nconst bar3 = new PlimitProgressBar(5, \"test 3\", multiBar);\n\ndata1.map(({ value, title }) =\u003e bar1.limitp(() =\u003e sleep(value * 1000), title));\ndata2.map(({ value, title }) =\u003e bar2.limitp(() =\u003e sleep(value * 1000), title));\ndata3.map(({ value, title }) =\u003e bar3.limitp(() =\u003e sleep(value * 1000), title));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjersou%2Fp_limit_cli_progress_deno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjersou%2Fp_limit_cli_progress_deno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjersou%2Fp_limit_cli_progress_deno/lists"}