Represents a byte size with a specific value and unit ByteUnits.

The ByteValue class allows for creating and manipulating Byte size representations using various bytes size from byte to gigabytes.

Constructors

Properties

Methods

Constructors

Properties

unit: ByteUnits
value: number

Methods

  • Parses a docker compose byte size (512m, 1.5G, 2gb, 1024).

    Parameters

    • input: undefined | string | number

    Returns undefined | ByteValue