Hex Core JS
    Preparing search index...

    Function formatBytes

    • Formats the given number of bytes in a human-readable, abbreviated format with a suffix (using B, KB, MB, GB, and TB). Note this formats using the base 2 definition for the scale (1024 bytes per KB, etc.). This can be overridden by setting a scaleSize value in the options.

      Parameters

      • value: number | null | undefined

        The number of bytes to format.

      • options: FormatBytesOptions = {}

        The options for formatting.

      Returns string