interface IFormatBytesOptions {
    culture?: string;
    decimals?: number;
    kilo?: number;
}

Properties

culture?: string

The culture to use for formatting the number itself, default is undefined which means the browser's default culture.

'en-GB', 'en-US', 'fr-FR', etc.
decimals?: number

Number of decimal places, default is 2.

0, 1, 2, 3, etc.
kilo?: number

Number of kilobytes, default is 1024.

1000 (1KB) or 1024 (1KiB)
MMNEPVFCICPMFPCPTTAAATR