Weird64 API - v0.1.0
    Preparing search index...

    Function encodeBlob

    • Encodes the bytes in a Blob as Weird64.

      This function uses the standard Blob.arrayBuffer() API and works in modern browsers and Node.js. It does not require callers to provide FileReader.

      Parameters

      • blob: Blob

        The blob whose bytes should be encoded.

      • charset: string = DEFAULT_CHARSET

        A string containing exactly 64 unique characters.

      Returns Promise<string>

      A promise resolving to the encoded Weird64 value.

      RangeError if the character set is invalid.