core/common/bytes.pipe.ts
Converts the file size to a readable format. Supports both decimal (default) and binary units.
Usage:
Example :Options object properties:
Decimal units: bytes, kB, MB, GB, TB, PB Binary units: bytes, KiB, MiB, GiB, TiB, PiB
Name | bytes |
Standalone | true |
Static bytes | ||||||||||||||||||||
bytes(bytes: number, precisionOrOptions: number | BytesOptions, binary, translateService?: TranslateService)
|
||||||||||||||||||||
Parameters :
Returns :
string | number
|
transform | ||||||||||||||||
transform(value: number, precisionOrOptions: number | BytesOptions, binary)
|
||||||||||||||||
Parameters :
Returns :
string | number
|