avoidwork / filesize.js

JavaScript library to generate a human readable String describing the file size
https://filesizejs.com
BSD 3-Clause "New" or "Revised" License
1.61k stars 97 forks source link

feat: add fullform to output object mode #118

Closed carlos22 closed 3 years ago

carlos22 commented 4 years ago

A good UI uses <abbr> for the units with the full name as title. This is very hard to to with this lib. One would need to call it twice to the both, the short and long version of the symbol. In the output: 'object' mode it should be easy to add a unit prop with the fullform of the symbol?!

avoidwork commented 3 years ago

I'll add unit but it'll be the shortform, because symbol behavior can't change; it also works better for looking up the different specs imo.