core.encodebase64
Home > @medplum/core > encodeBase64
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
The base-64 encoded string.