Skip to content

Provide an option to use IEC system #7

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

Closed
pgilad opened this issue Dec 14, 2014 · 4 comments
Closed

Provide an option to use IEC system #7

pgilad opened this issue Dec 14, 2014 · 4 comments

Comments

@pgilad
Copy link

pgilad commented Dec 14, 2014

would you be willing to accept a PR for that?

@sindresorhus
Copy link
Owner

No. It's intentionally option-less. I feel base-10 is the right way to display sizes for humans.

You're of course free to use any of the other file size prettifiers if you disagree :)

@pgilad
Copy link
Author

pgilad commented Dec 14, 2014

great... thanks anyway 😄 I feel the same way, but sometimes product managers feel otherwise

@MartinMuzatko
Copy link

We feed in the information from the npm package systeminformation Which uses df which uses base 2 - 1024.

It would be nice to have this configurable, because the rest of the pretty-bytes package is working wonderfully.

But eh, it is your package. So you decide.

@lmcarreiro
Copy link

No. It's intentionally option-less. I feel base-10 is the right way to display sizes for humans.

Have you thought about adding the option to show base 2, but with the right units that nobody uses? kiB, MiB, GiB, ...

This would help people to understand that 1 kB is actually 1000 B and not 1024 B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants