filesize

JavaScript library to generate a human readable String describing the file size

byte-size

Convert a bytes or octets value (e.g. 34565346) to a human-readable string ('34.6 MB'). Choose between metric or IEC units.