{"id":16480775,"url":"https://github.com/windos/poshpctbar","last_synced_at":"2025-07-30T16:33:37.607Z","repository":{"id":83505123,"uuid":"43617364","full_name":"Windos/PoshPctBar","owner":"Windos","description":"Rudimentary PowerShell module for generating Percentage Bars","archived":false,"fork":false,"pushed_at":"2021-03-15T03:23:17.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T10:54:21.208Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","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/Windos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"Windos","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2015-10-03T22:32:37.000Z","updated_at":"2024-03-29T11:09:24.000Z","dependencies_parsed_at":"2023-10-15T22:31:56.645Z","dependency_job_id":null,"html_url":"https://github.com/Windos/PoshPctBar","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Windos/PoshPctBar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Windos%2FPoshPctBar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Windos%2FPoshPctBar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Windos%2FPoshPctBar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Windos%2FPoshPctBar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Windos","download_url":"https://codeload.github.com/Windos/PoshPctBar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Windos%2FPoshPctBar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267899139,"owners_count":24162989,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11T13:05:18.139Z","updated_at":"2025-07-30T16:33:37.592Z","avatar_url":"https://github.com/Windos.png","language":"PowerShell","funding_links":["https://github.com/sponsors/Windos"],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/ybxevtcn2mil3fds?svg=true)](https://ci.appveyor.com/project/Windos/poshpctbar)\n\n# PoshPctBar\nRudimentary PowerShell module for generating Percentage Bars\n\n## Installation\n\n### Manual Install\n\nDownload [PoshPctBar.zip](https://github.com/Windos/PoshPctBar/releases/download/v0.1.0/PoshPctBar.zip) and extract the contents into `C:\\Users\\[User]\\Documents\\WindowsPowerShell\\modules\\PoshPctBar` (you may have to create these directories if they don't exist.)\n\n### PowerShell Gallery Install (Requires PowerShell v5)\n\n_See the [PowerShell Gallery](http://www.powershellgallery.com/packages/PoshPctBar/) for the complete details and instructions._\n\n## Usage\n\n    # This example generates a Percentage Bar that is 50% filled, with a default square bracket border:\n    PS C:\\\u003e New-PercentBar -Percent 0.5\n    \n    [xxxxx.....]\n    \n    # This example generates a Percentage Bar that is 30% filled, with a border constructed out of pipe (|) characters:\n    PS C:\\\u003e New-PercentBar -Percent 0.3 -Border '||'\n    \n    |xxx.......|\n    \n    # This example takes a decimal value from the pipeline and generates a Percentage Bar that is 80% filled and doesn't have a border:\n    PS C:\\\u003e 0.8 | New-PercentBar -NoBorder\n    \n    xxxxxxxx..\n\t\n    # This example uses customized characters:\n    PS C:\\\u003e New-PercentBar -Percent 0.8 -BarCharacter '-' -RemainderCharacter ' '\n    \n    [--------  ]\n    \n    # This example is twice as long as the default percentage bar:\n    PS C:\\\u003e New-PercentBar -Percent 0.2 -Length 20\n    \n    [xxxx................]\n    \n    # This example displays the Disk Letter, Label, Size and a Percent Bar prepresenting the freespace of all disks on the local system.\n    PS C:\\\u003e Get-WmiObject Win32_LogicalDisk | Select-Object -Property DeviceID, VolumeName, Size, @{N = 'Used'; E = {1 - ($_.FreeSpace / $_.Size) | New-PercentBar}}\n  \n    DeviceID VolumeName          Size Used        \n    -------- ----------          ---- ----        \n    C:       OS          499512242176 [x.........]\n    D:       Games       320070479872 [xxxxx.....]\n    M:       MEDIA      1500299390976 [xxxxxxx...]\n\n## History\n* [v0.2.1](https://github.com/Windos/PoshPctBar/releases/v0.2.1)\n  * Adjusted parameter names, less ambiguity.\n  * Border parameter no longer defined as a set, was causing errors when using IntelliSense.\n  * Border parameter can now be any set of two characters provided as a string.\n  * Included a practical example of usage.\n* [v0.2.0](https://github.com/Windos/PoshPctBar/releases/v0.2.0)\n  * Customizable percentage bar characters.\n  * Optional leading character (e.g. [----\u003e     ])\n  * Customizable length of bar.\n* [v0.1.0](https://github.com/Windos/PoshPctBar/releases/v0.1.0)\n  * First version with basic functionality.\n\n## Credits\nThanks to Kevin Dresser for the original idea and implementation, which has since been bastardized beyond recognition (sorry...).\n\n## License\n* see [LICENSE](LICENSE) file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindos%2Fposhpctbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindos%2Fposhpctbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindos%2Fposhpctbar/lists"}