btoa
btoa(data: string): stringThe 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.