API reference › @evolu/common › Type › base64UrlToUint8Array
function base64UrlToUint8Array(value: string & Brand<"Base64Url">): Uint8Array;
Defined in: packages/common/src/Type.ts:5802
Converts Base64Url to bytes.
Example
import { assertEqual, Base64Url, base64UrlToUint8Array } from "@evolu/common";
const value = Base64Url.orThrow("AAEC_w");
assertEqual(base64UrlToUint8Array(value), new Uint8Array([0, 1, 2, 255]));