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

Adding `unit` to `object` output #129

Closed avoidwork closed 3 years ago

avoidwork commented 3 years ago
filesize(1024, {fullform: true, standard: "iec", output: "object"}) // { value: 1, symbol: 'kibibyte', exponent: 1, unit: 'KiB' }