node-cooper - v0.2.0
    Preparing search index...

    Function parseBytes

    • Parses a byte-size literal's text into total bytes (CASC.md §6.9): case-insensitive units, an i before B meaning binary (×1024), decimal (×1000) otherwise; the numeral may be fractional, and is scaled exactly at any size (scaled).

      Parameters

      • text: string

      Returns string | bigint

      bytes, or an error message