UNPKG

@svta/common-media-library

Version:
17 lines 395 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.encodeBase64 = encodeBase64; /** * Encodes binary data to base64 * * @param binary - The binary data to encode * @returns The base64 encoded string * * @group Utils * * @beta */ function encodeBase64(binary) { return btoa(String.fromCharCode(...binary)); } //# sourceMappingURL=encodeBase64.js.map