Base64.decode
import { Base64 } from "https://raw.githubusercontent.com/i-xi-dev/base64.es/4.1.13/mod.ts";
const { decode } = Base64;
Decodes a Base64-encoded string into an Uint8Array
.
@example
Base64.decode("AwIBAP/+/fw=");
// → Uint8Array[ 0x03, 0x02, 0x01, 0x00, 0xFF, 0xFE, 0xFD, 0xFC ]
@example
const rfc4648urlOptions = Base64.Options.RFC4648URL;
Base64.decode("AwIBAP_-_fw", rfc4648urlOptions);
// → Uint8Array[ 0x03, 0x02, 0x01, 0x00, 0xFF, 0xFE, 0xFD, 0xFC ]