Docs

base64.decodeURLSafe

Decodes a Base64-encoded string in URL Safe format into bytes.

Syntax

decodeURLSafe(string)

Parameters

Return value

A Uint8Array with decoded bytes.

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

Example

base64.decodeURLSafe("AQID_w")
Uint8Array [1, 2, 3, 255]