@exodus/bytes
    Preparing search index...
    • Decode either base64 or base64url string to bytes

      Automatically detects the variant based on characters present

      Parameters

      • string: string

        The base64 or base64url encoded string

      • Optionaloptions: FromBase64Options

        Decoding options

      Returns Uint8Array

      The decoded bytes

    • Decode either base64 or base64url string to bytes

      Automatically detects the variant based on characters present

      Parameters

      • string: string

        The base64 or base64url encoded string

      • options: FromBase64Options & { format: "buffer" }

        Decoding options

      Returns Buffer

      The decoded bytes