{"id":24380775,"url":"https://github.com/lzinga/ascii-loader","last_synced_at":"2026-01-30T01:09:53.918Z","repository":{"id":96438316,"uuid":"268399706","full_name":"lzinga/ASCII-Loader","owner":"lzinga","description":"A javascript plugin used to create ASCII style progress bars.","archived":false,"fork":false,"pushed_at":"2020-06-01T16:24:13.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T08:33:10.901Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://lzinga.github.io/ASCII-Loader/","language":"HTML","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/lzinga.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":"2020-06-01T01:46:52.000Z","updated_at":"2020-12-03T01:01:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fe3f394-f8ac-4927-bd9a-0f3d96e1a9c6","html_url":"https://github.com/lzinga/ASCII-Loader","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/lzinga%2FASCII-Loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzinga%2FASCII-Loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzinga%2FASCII-Loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lzinga%2FASCII-Loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lzinga","download_url":"https://codeload.github.com/lzinga/ASCII-Loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243240929,"owners_count":20259495,"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":"2025-01-19T08:29:06.667Z","updated_at":"2026-01-30T01:09:48.893Z","avatar_url":"https://github.com/lzinga.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ascii Loader\nAfter a while searching for a simple ASCII loader and failing, I quickly made one. Is this one perfect? No. Will it break? Probably.\n\nYou can view a demo of it located at the link below which will allow you to adjust each setting and see the changes.\n\n[View Demo](https://lzinga.github.io/ASCII-Loader/)\n\n## Config\n\n```javascript\n// Creates a default progress bar with the default options.\nvar progressbar = new AsciiProgress(\"progressbar\")\n\n// Creates a progress bar with an options object passed in.\nvar progressbar = new AsciiProgress(\"progressbar\", options)\n```\n\n#### Default Options\n```javascript\n{\n    openCharacter: \"[\",\n    loadedCharacter: \"#\",\n    backgroundCharacter: \" \",\n    closeCharacter: \"]\",\n\n    showComment: true,\n    startingComment: \" \",\n    commentLocation: \"bottom\",\n\n    length: 60,\n    value: 0,\n    completeAt: 100,\n\n    showPercent: true,\n    percentDecimalPlaces: 2,\n    percentLocation: \"middle\",\n}\n```\n\n#  Methods\n\n```javascript\n// Sets the current comment value.\nprogressbar.setComment(\"Loading images...\")\n\n// Sets the current value out of the completeAt. Hitting the\n// completeAt value will be 100%. so 10 here with a completeAt of 100 will be 10%.\nprogressbar.setValue(10)\n```\n\n\n# Events\nThese events will be included in the options argument of `new AsciiProgress`\n```javascript\n{\n    // Will execute upon creation of new AsciiProgress\n    onStart: function() {\n        console.log(\"The progress bar has been created.\")\n    },\n\n    // Will execute every time setValue method is called.\n    onUpdate: function(value, completeAt, percent) {\n        console.log(\"The value has been updated.\")\n    },\n\n    // When the progress bar reaches 100% this event is called.\n    onComplete: function () {\n        console.log(\"The progress bar has reached 100%\")\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzinga%2Fascii-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flzinga%2Fascii-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flzinga%2Fascii-loader/lists"}