{"id":17100648,"url":"https://github.com/jakobhellermann/deno-progressbar","last_synced_at":"2025-04-12T23:54:09.253Z","repository":{"id":57675339,"uuid":"264423301","full_name":"jakobhellermann/deno-progressbar","owner":"jakobhellermann","description":"a terminal progressbar for deno","archived":false,"fork":false,"pushed_at":"2020-05-29T09:25:30.000Z","size":1180,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T23:54:02.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/jakobhellermann.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":"2020-05-16T11:37:04.000Z","updated_at":"2023-07-25T14:35:47.000Z","dependencies_parsed_at":"2022-09-26T20:41:32.426Z","dependency_job_id":null,"html_url":"https://github.com/jakobhellermann/deno-progressbar","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fdeno-progressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fdeno-progressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fdeno-progressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fdeno-progressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakobhellermann","download_url":"https://codeload.github.com/jakobhellermann/deno-progressbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647234,"owners_count":21139083,"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-10-14T15:14:19.944Z","updated_at":"2025-04-12T23:54:09.229Z","avatar_url":"https://github.com/jakobhellermann.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# progressbar\n\n\u003e deno progress bars for the terminal\n\n![demo gif](./demo.gif)\n\n## Usage\n\n```typescript\nimport ProgressBar from \"https://deno.land/x/progressbar@v0.2.0/progressbar.ts\";\nimport {\n  percentageWidget,\n  amountWidget,\n} from \"https://deno.land/x/progressbar@v0.2.0/widgets.ts\";\n\nconst sleep = (ms: number) =\u003e new Promise((resolve) =\u003e setTimeout(resolve, ms));\n\nconst widgets = [percentageWidget, amountWidget];\nconst pb = new ProgressBar({ total: 200, widgets });\n\nfor (let i = 0; i \u003c pb.total; i++) {\n  await pb.update(i);\n  await sleep(50);\n}\nawait pb.finish();\n```\n\nYou can also create widgets yourself, they are just a function which, given the total and current value, returns a string.\n\n```typescript\nconst percentWidget = (i, total) =\u003e `${(i / total * 100)%`;\n```\n\n## License\n\nMIT © [Jakob Hellermann](mailto:jakob.hellermann@protonmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Fdeno-progressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakobhellermann%2Fdeno-progressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Fdeno-progressbar/lists"}