Title: Invoke-WebRequest to show expected download size and more human readable format (MB/GB instead of Bytes) · Issue #14610 · PowerShell/PowerShell · GitHub
Open Graph Title: Invoke-WebRequest to show expected download size and more human readable format (MB/GB instead of Bytes) · Issue #14610 · PowerShell/PowerShell
X Title: Invoke-WebRequest to show expected download size and more human readable format (MB/GB instead of Bytes) · Issue #14610 · PowerShell/PowerShell
Description: Summary of the new feature/enhancement Currently, users of Invoke-WebRequest do not know how much they have downloaded because a big Byte number gets displayed and due to the digits not being mono-spaced, I cannot even attempt to count d...
Open Graph Description: Summary of the new feature/enhancement Currently, users of Invoke-WebRequest do not know how much they have downloaded because a big Byte number gets displayed and due to the digits not being mono-...
X Description: Summary of the new feature/enhancement Currently, users of Invoke-WebRequest do not know how much they have downloaded because a big Byte number gets displayed and due to the digits not being mono-...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/14610
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invoke-WebRequest to show expected download size and more human readable format (MB/GB instead of Bytes)","articleBody":"## Summary of the new feature/enhancement\r\n\r\nCurrently, users of `Invoke-WebRequest` do not know how much they have downloaded because a big Byte number gets displayed and due to the digits not being mono-spaced, I cannot even attempt to count digits whilst the number changes every second. Also, I have no progress bar to tell me how much it needs to download.\r\n\r\n## Proposed technical implementation details (optional)\r\n\r\n[ByteSize](https://www.nuget.org/packages/Bytesize) is a small (14KB) library to better display human readable file sizes but as the problem is quite simple, it was decided to not introduce a dependency but rather just hand-code it instead. Because PowerShell treats `1 KB` as 1024, it should probably use 1024 as the base for KB, MB, etc.\r\n\r\nI suggest to have one significant digit after after the comma starting with KB and increase the number of significant digits by 1 for MB, GB, etc.\r\n\r\nPR here: https://github.com/PowerShell/PowerShell/pull/14611","author":{"url":"https://github.com/bergmeister","@type":"Person","name":"bergmeister"},"datePublished":"2021-01-14T18:45:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/14610/PowerShell/issues/14610"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:991a16dd-d875-9ed7-8816-554a8fa32fa3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A104:33B84F:3BCCD3C:52BBFBE:6A54C027 |
| html-safe-nonce | 10705b3d70683738a77c737a849f968982382b824cff6600f93fe9267cb57b31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTA0OjMzQjg0RjozQkNDRDNDOjUyQkJGQkU6NkE1NEMwMjciLCJ2aXNpdG9yX2lkIjoiMzQ3ODU5ODkyNzk4MDQ3ODUwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 53a8e145ca58930736355379110a43f7cfae54a1dbc973c51af80b2b62946c90 |
| hovercard-subject-tag | issue:786227441 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/14610/issue_layout |
| twitter:image | https://opengraph.githubassets.com/54007ff04ccdc9568a9bb9a37a406d4ad268badad31c4d84ec0de2edd25861f3/PowerShell/PowerShell/issues/14610 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/54007ff04ccdc9568a9bb9a37a406d4ad268badad31c4d84ec0de2edd25861f3/PowerShell/PowerShell/issues/14610 |
| og:image:alt | Summary of the new feature/enhancement Currently, users of Invoke-WebRequest do not know how much they have downloaded because a big Byte number gets displayed and due to the digits not being mono-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bergmeister |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 69f9664dd5e7a82ba8ab1b4cb7f5a2f09333ab38 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width