Skip to main content

core.encodebase64

Home > @medplum/core > encodeBase64

encodeBase64() function

Encodes a base64 string. Handles both browser and Node environments.

Signature:

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

Parameters

ParameterTypeDescription
datastringThe unencoded input string.

Returns:

string

The base-64 encoded string.