Closed zerkms closed 2 years ago
yup, this is what people wanted for the last major release. i believe it was a mistake.
originally fixed with https://github.com/avoidwork/filesize.js/commit/bb72429202c4920c8a9133497b74c33eea86b60b and then undone with https://github.com/avoidwork/filesize.js/commit/afd78c28524d7a9e4830769385d2ade467991d90 which i have no idea atm; however i completely agree what it's configured to do right now is inane.
The check is defined as:
Which reads - if only
base
equals 2 - take thedescriptor.standard
. Butbase
default value is 10.Hence
would output
"265.32 kB"
So it means:
standard
option does nothing ifbase
is not specified