{"id":15043854,"url":"https://github.com/developersunesis/electron-progressbar","last_synced_at":"2025-03-27T14:18:13.792Z","repository":{"id":57150555,"uuid":"204782458","full_name":"developersunesis/Electron-Progressbar","owner":"developersunesis","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-19T14:06:17.000Z","size":39,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T13:39:12.877Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/developersunesis.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":"2019-08-27T20:11:38.000Z","updated_at":"2019-08-28T20:40:35.000Z","dependencies_parsed_at":"2022-09-03T16:51:23.061Z","dependency_job_id":null,"html_url":"https://github.com/developersunesis/Electron-Progressbar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersunesis%2FElectron-Progressbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersunesis%2FElectron-Progressbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersunesis%2FElectron-Progressbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developersunesis%2FElectron-Progressbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developersunesis","download_url":"https://codeload.github.com/developersunesis/Electron-Progressbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858884,"owners_count":20684062,"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-09-24T20:49:42.739Z","updated_at":"2025-03-27T14:18:13.763Z","avatar_url":"https://github.com/developersunesis.png","language":"JavaScript","readme":"# Electron-Progressbar\nelectronjs-progressbar is a lightweight lib that adds a progressbar to the top of your window view. Progressbar type currently support determinate or intermediate. It is simple and easy to implement and requires only the `body` element of the page present. \n\n# Installation\n`\nnpm i electronjs-progressbar\n`\nor visit https://www.npmjs.com/package/electronjs-progressbar\n\n# Configuration\n`container`      :     `color (default: body)` (This defines the container you want the progressbar)\n\u003cbr/\u003e\n\u003cbr/\u003e\n`baseBackground`      :     `color (default: transparent)` (This defines the background color of the parent element of the progressbar)\n\u003cbr/\u003e\n\u003cbr/\u003e\n`progressBackground`  :     `color [optional] (default: blue)` (I really consider blue to be a cool and nice color for the progressbar background)\n\u003cbr/\u003e\n\u003cbr/\u003e\n`type`                :     `options[ \"D\", \"I\"] [optional] (default = \"D\")`  (Sets the type of progressbar to either `determinate` or `intermediate` using letters `D` or `I` respectively\n\u003cbr/\u003e\n\u003cbr/\u003e\n`speed`               :     `integer [optional] (default = 3)`   (Sets the progress speed using this attribute)\n\u003cbr/\u003e\n\u003cbr/\u003e\n`maxProgressWidth`    :     `integer [optional] (default = 20)`  (Sets the max width of the progressbar)\n\u003cbr/\u003e\n\u003cbr/\u003e\n `barHeight`          :     `integer [optional] (default = 3)`  (Sets the height of the progressbar) \n\u003cbr/\u003e\n\u003cbr/\u003e\n`customProgressCss`           :     `String [optional]` (Sets your custom css for progressbar, for example \"margin-top: 10px; width: 50%\")\n\u003cbr/\u003e\n\u003cbr/\u003e\n`customCss`           :     `String [optional]` (Sets your custom css for progressbar's container, for example \"margin-top: 10px; width: 50%\")\n\n# Properties\n`progressbar.COMPLETED`     `Equals to \"C\" and triggers progressbar completion`\n\u003cbr/\u003e\n\u003cbr/\u003e\n`progressbar.LOADING`       `Equals to \"L\" and sets progressbar state as loading`\n\u003cbr/\u003e\n\u003cbr/\u003e\n`progressbar.progressBarID`       `Gets progressbar's id usually \"electronjsprogressbar\"`\n\n# Usage\n```javascript\n    //import the library\n    const createProgressBar = require('electronjs-progressbar');\n\n    //initialize progressbar\n    const config = {\n            progressBackground: \"blue\",\n            type: \"D\",\n            speed: 5\n          };\n          \n    var progressbar = createProgressBar({\n          config\n          });\n\n    /**\n    * or inline initialize\n    * var progressbar = createProgressBar({\n    *       \n    *    });\n    **/\n    \n    //start progressbar\n    progressbar.setProgressStatus();\n    \n    //complete progressbar using\n    //progressbar.setProgressStatus(\"C\"); or progressbar.setProgressStatus(progressbar.COMPLETED);\n    //for a live simulation I would call this after 3000 milliseconds to actually show the progressbar loading\n    \n    setTimeout(function(){\n      progressbar.setProgressStatus(progress.COMPLETED);\n    }, 3000);\n\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersunesis%2Felectron-progressbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopersunesis%2Felectron-progressbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopersunesis%2Felectron-progressbar/lists"}