core.encodebase64 | Medplum

encodeBase64() function

Encodes a base64 string. Handles both browser and Node environments. Supports Unicode characters.

Signature:

export declare function encodeBase64(data: string): string;

Parameters

Parameter Type Description
data string The unencoded input string.

Returns:

string