kernl API
    Preparing search index...

    Function formatBytes

    • 1.5 MiB style byte counts for the grants panel.

      Parameters

      • bytes: number

        A byte count.

      Returns string

      The count in binary units.

      formatBytes(1536); // '1.5 KiB'