The number of bytes to convert. Can be a number
or bigint
.
If true
, uses base 1024 (e.g., KiB, MiB). If false
, uses base 1000 (e.g., kB, MB). Defaults to false
.
A string representing the file size in a human-readable format (e.g., "1.23 MB", "456.00 Bytes").
Converts a number of bytes into a human-readable file size string.