Theia API Documentation v1.65.0
    Preparing search index...

    Helper class for formatting and parsing byte sizes.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    GB: number = ...
    KB: 1024
    MB: number = ...
    TB: number = ...

    Methods

    • Parses a human readable string (e.g., "1.5MB", "2.3GB") and returns the size in bytes

      Parameters

      • sizeInput: undefined | string | number

      Returns number