The size in bytes.
Optional
options: { base?: 2 | 10; decimalPlaces?: number } = {}Optional
base?: 2 | 10The base to use. In base 10 a kilobyte is 1000 bytes. In base 2 it is 1024 bytes.
Optional
decimalPlaces?: numberThe number of decimal places to round to.
Format a file size to an appropriate order of magnitude.