{"id":20793696,"url":"https://github.com/uiuxarghya/progress-bar","last_synced_at":"2025-05-11T14:33:23.411Z","repository":{"id":41132635,"uuid":"494874903","full_name":"uiuxarghya/progress-bar","owner":"uiuxarghya","description":"A small, easy \u0026 zero-dependency progress bar component.","archived":false,"fork":false,"pushed_at":"2024-08-14T06:38:54.000Z","size":1436,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T03:47:59.433Z","etag":null,"topics":["animation","javascript","progress","progress-bar","progress-bar-component","progress-bar-react","progress-bars","progressbar","typescript","uiuxarghya"],"latest_commit_sha":null,"homepage":"https://npm.im/@uiuxarghya/progress-bar","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/uiuxarghya.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":"2022-05-21T19:18:57.000Z","updated_at":"2024-08-14T06:37:50.000Z","dependencies_parsed_at":"2024-11-17T16:11:06.077Z","dependency_job_id":"f196a0fd-0637-47a4-80f2-65139c940600","html_url":"https://github.com/uiuxarghya/progress-bar","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.038461538461538436","last_synced_commit":"3a7ce023e8bf70ba063f153dae49ad80bee99bdc"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiuxarghya%2Fprogress-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiuxarghya%2Fprogress-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiuxarghya%2Fprogress-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiuxarghya%2Fprogress-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiuxarghya","download_url":"https://codeload.github.com/uiuxarghya/progress-bar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253580134,"owners_count":21930887,"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":["animation","javascript","progress","progress-bar","progress-bar-component","progress-bar-react","progress-bars","progressbar","typescript","uiuxarghya"],"created_at":"2024-11-17T16:11:02.168Z","updated_at":"2025-05-11T14:33:23.047Z","avatar_url":"https://github.com/uiuxarghya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# progress-bar [![tests](https://github.com/uiuxarghya/progress-bar/workflows/tests/badge.svg)](https://github.com/uiuxarghya/progress-bar/actions?query=workflow%3Atests) [![npm](https://img.shields.io/npm/v/@uiuxarghya/progress-bar.svg)](https://www.npmjs.com/package/@uiuxarghya/progress-bar) [![jsdeliver hits](https://data.jsdelivr.com/v1/package/npm/@uiuxarghya/progress-bar/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@uiuxarghya/progress-bar)\n\nA small, easy \u0026amp; zero-dependency progress bar component.\n\n![Progress Bar Demo](https://raw.githubusercontent.com/uiuxarghya/progress-bar/main/.github/progress-bar-demo.gif)\n\n## Features\n\n- **Zero dependencies**: Also not tied to any framework in particular.\n- **Small size**: \u003c 500 bytes with Brotli (\u003c 600 bytes gzipped).\n- **Easy to use**: Just a couple of lines and off you go. And TypeScript types are now available as well!\n\n## Installation\n\n```sh\nbun i @uiuxarghya/progress-bar \n# npm i @uiuxarghya/progress-bar\n# yarn add @uiuxarghya/progress-bar\n```\n\n## Usage\n\nImport the package and create a progress bar instance:\n\n```js\nimport ProgressBar from '@uiuxarghya/progress-bar';\n\nconst progress = new ProgressBar();\n```\n\nShow the progress bar and begin animating it by calling the `.start()` method:\n\n```js\nprogress.start();\n```\n\nEnd the progress bar animation by calling the `.finish()` method:\n\n```js\nsetTimeout(() =\u003e {\n  progress.finish();\n}, 1000);\n```\n\nYou can reuse a `progress` instance multiple times - every time `.start()` gets called the progress bar starts animation from scratch.\n\n## Customization\n\nThe progress bar's appearance and behavior can be (slightly) customized with constructor parameters. Here are the different options and their default values:\n\n```js\nconst progress = new ProgressBar({\n  // The size (height) of the progress bar.\n  // Numeric values get converted to px.\n  size: 2,\n\n  // Color of the progress bar.\n  // Also used for the glow around the bar.\n  color: '#0cf',\n\n  // Class name used for the progress bar element.\n  className: 'progress-bar',\n\n  // How many milliseconds to wait before the progress bar\n  // animation starts after calling .start().\n  delay: 80,\n});\n```\n\n## License\n\nThis library is licensed under the MIT license. See [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiuxarghya%2Fprogress-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiuxarghya%2Fprogress-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiuxarghya%2Fprogress-bar/lists"}