btoa

Functionin globals@fastly/js-compute 4.0.0View source
btoa(data: string): string

The btoa() method creates a Base64-encoded ASCII string from a binary string (i.e., a string in which each character in the string is treated as a byte of binary data).

See also

Parameters

data: string

The binary string to encode.

Returns

string

An ASCII string containing the Base64 representation of data.