avoidwork/filesize.js

output object should give the exponent too

chiptus opened this issue · 0 comments

Thank you for writing this library :D

sometimes I need the calculated size, and the exponent too for further calculations (for instance I want to show usedSpace/totalSpace, and have them both in the same unit)
For now, I'm calling filesize twice, once for the exponent and once for the size