{"id":23086124,"url":"https://github.com/spookyuser/web-console-progress-bar","last_synced_at":"2025-06-30T02:37:03.611Z","repository":{"id":214299554,"uuid":"736186586","full_name":"spookyuser/web-console-progress-bar","owner":"spookyuser","description":"A progress bar for the browser console.","archived":false,"fork":false,"pushed_at":"2024-01-05T10:10:12.000Z","size":86,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T16:14:41.778Z","etag":null,"topics":["progress-bar","progress-bar-component","progress-bars"],"latest_commit_sha":null,"homepage":"","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/spookyuser.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":"2023-12-27T08:04:44.000Z","updated_at":"2025-03-14T02:08:30.000Z","dependencies_parsed_at":"2024-01-05T11:33:45.288Z","dependency_job_id":null,"html_url":"https://github.com/spookyuser/web-console-progress-bar","commit_stats":null,"previous_names":["spookyuser/web-console-progress-bar"],"tags_count":11,"template":false,"template_full_name":"EdJoPaTo/typescript-node-module-template","purl":"pkg:github/spookyuser/web-console-progress-bar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spookyuser%2Fweb-console-progress-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spookyuser%2Fweb-console-progress-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spookyuser%2Fweb-console-progress-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spookyuser%2Fweb-console-progress-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spookyuser","download_url":"https://codeload.github.com/spookyuser/web-console-progress-bar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spookyuser%2Fweb-console-progress-bar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262699876,"owners_count":23350387,"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":["progress-bar","progress-bar-component","progress-bars"],"created_at":"2024-12-16T18:16:32.220Z","updated_at":"2025-06-30T02:37:03.587Z","avatar_url":"https://github.com/spookyuser.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# web-console-progress-bar\n\n[![NPM Version](https://img.shields.io/npm/v/web-console-progress-bar.svg)](https://www.npmjs.com/package/web-console-progress-bar)\n\n\u003e A progress bar for the browser console.\n\n## Install\n\n```sh\nnpm install web-console-progress-bar\n```\n\n## Usage\n\n```typescript\nimport { ConsoleProgressBar } from \"web-console-progress-bar\"\n\nconst progressBar = new ConsoleProgressBar(100)\nprogressBar.update(10)\n//=\u003e Progress: [██████░░░░░░░░░░░░] 10% ETA: XXs\n```\n\nor\n\n```typescript\nconst progressBar = new ConsoleProgressBar(100)\n\nfor (let i = 0; i \u003c= 100; i++) {\n  progressBar.update(i)\n  // Simulate some delay\n  await new Promise((resolve) =\u003e setTimeout(resolve, 100))\n}\n```\n\nThis will create a progress bar in the console that updates every 2 seconds (default `updateInterval`), and clears the console before each update (default `clearConsole`).\n\n## API\n\n### Constructor\n\n```typescript\nconstructor(total: number, updateInterval?: number, clearConsole?: boolean)\n```\n\nCreates a new instance of `ConsoleProgressBar`.\n\n- `total` (number): The total number of items to process.\n- `updateInterval` (number, optional): The interval (in milliseconds) at which to update the progress bar. Default is 2000.\n- `clearConsole` (boolean, optional): Indicates whether to clear the console before updating the progress bar. Default is true.\n\n### Method: update\n\n```typescript\nupdate(currentValue: number): void\n```\n\nUpdates the current value of the progress bar.\n\n- `currentValue` (number): The current value.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspookyuser%2Fweb-console-progress-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspookyuser%2Fweb-console-progress-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspookyuser%2Fweb-console-progress-bar/lists"}