-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed width format #58
Comments
@gaborcsardi maybe padStart can help you 🤔 |
Yeah, then I might just write another package, because it is not just a |
@gaborcsardi oh, I see, this wasn't obvious from the example above :) |
@gaborcsardi for your case, another option is to use filesize instead, you can set I switched to it because I need precision #57 and it kinda works fine. |
@sindresorhus How do you want the fixed width to be achieved? Spaces only make sense for terminals or when using fixed-width fonts since they would sometimes otherwise be too small. |
Maybe instead we could just make add a |
For progress bars, it would be nice to have an output format that is always the same width. E.g. a possible six character wide format:
The text was updated successfully, but these errors were encountered: