btoa

btoa(rawString: string) string

Encodes a Latin-1 binary string as base64 and throws for characters above U+00FF.