-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
filesize(1024); does not give "1.02 kB" #154
Comments
It does work like the README.md says, the first option (base) has a default of 10. I've removed the outdated examples to remove confusion. This is probably what you're looking for: https://github.com/avoidwork/filesize.js#partial-application |
Thanks for removing the confusion from the README.md. I don't care about the default base change. I actually want base 10. My only complaint is that there is an I am looking for using the SI prefix for base 10. |
totally agree. 9.0.0 shifted it because #152 is the cause of the regression. there's 2 camps which do not agree on how it works. I'll return the original behavior. |
This is 9.0.9. |
The Readme has an example of:
But the actual output is:
Would be cool if it worked like in the Readme.
Also see: #150
For Anyone else you can use v8.0.7
The text was updated successfully, but these errors were encountered: