The number of bytes to be converted.
The number of decimal places to include in the formatted string. Defaults to 2.
A string representing the formatted number of bytes with the appropriate unit.
https://stackoverflow.com/a/18650828 The souce of the function (It was originally in JavaScript but I converted it to TypeScript.).
Converts a given number of bytes into a human-readable string with the appropriate unit.