• Convert number of bytes into a human-readable size

    Parameters

    • bytes: number

      Number of bytes

    • decimals: number = 2

      Decimal places to preserve

    Returns string

    Formated size