Options
All
  • Public
  • Public/Protected
  • All
Menu

Size formatting API.

Hierarchy

  • SizeFormatter

Index

Properties

Methods

Properties

SIZE_MAP

SIZE_MAP: string[]

Size map containing units in order.

Methods

getSizeStringFromLength

  • Gets a size string from the specified data length. Example: 2048 -> 2 KB

    Parameters

    • len: number

      The input length.

    • Optional opts: SizeFmtOptions

      Options.

    Returns string

Generated using TypeDoc