base32.decode

Decodes a base32-encoded string into bytes.

Syntax

decode(string)

Parameters

Return value

A Uint8Array with decoded bytes.

Throws an error if the string is not a valid base32 string.

Example

base32.decode("AEBAH7Y")
Uint8Array [1, 2, 3, 255]