UNPKG

b64-lite

Version:

isomorphic base64 library in 152 bytes

19 lines (14 loc) 369 B
function atob(b64) { return window.atob(b64); } function btoa(bin) { return window.btoa(bin); } function toBase64(string) { return window.btoa(unescape(encodeURIComponent(string))); } function fromBase64(b64) { return decodeURIComponent(escape(window.atob(b64))); } export { atob, btoa, toBase64, fromBase64 }; //# sourceMappingURL=b64-lite.mjs.map