Skip to content

Documents for @litert/base32 / base32-wasm / stringFromBase32

Variable: stringFromBase32()

const stringFromBase32: (data) => string

Defined in: base32-wasm.ts:158

Decode a BASE32-encoded string into a UTF-8 string.

This method calls bufferFromBase32 to decode the input string into a Buffer, and then converts it to a UTF-8 string.

Parameters

data

string

The BASE32-encoded string to be decoded.

Returns

string

The decoded UTF-8 string.

Throws

RangeError if the input is not a valid BASE32-encoded string.

See

https://datatracker.ietf.org/doc/html/rfc4648#section-6