UNPKG

@svta/common-media-library

Version:
17 lines 438 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.decodeBase64 = decodeBase64; /** * Decodes a base64 encoded string into binary data * * @param str - The base64 encoded string to decode * @returns The decoded binary data * * @group Utils * * @beta */ function decodeBase64(str) { return new Uint8Array([...atob(str)].map((a) => a.charCodeAt(0))); } //# sourceMappingURL=decodeBase64.js.map