Function: encodeBase64()
ts
function encodeBase64(binary): string;Defined in: encodeBase64.ts:14
Encodes binary data to base64
Parameters
binary
The binary data to encode
Returns
string
The base64 encoded string
Example
ts
assert.deepStrictEqual(encodeBase64(new Uint8Array([104, 101, 108, 108, 111])), 'aGVsbG8=')