New: Headless Commerce with Remix! read more

FileSizePipe

FileSizePipe

Formats a number into a human-readable file size string.

Example

{{ fileSizeInBytes | filesize }}

Signature

class FileSizePipe implements PipeTransform {
  transform(value: number, useSiUnits: boolean = true) => any;
}

Implements

  • PipeTransform

Members

transform

method
type:
(value: number, useSiUnits: boolean = true) => any