@exodus/bytes
    Preparing search index...
    • Create a decoder for a supported one-byte encoding, given its lowercased name encoding.

      Returns a function decode(arr) that decodes bytes to a string.

      Parameters

      • encoding: string

        The encoding name (e.g., 'iso-8859-1', 'windows-1252')

      • Optionalloose: boolean

        If true, replaces unmapped bytes with replacement character instead of throwing (default: false)

      Returns (arr: Uint8Array) => string

      A function that decodes bytes to string