b64-lite
Version:
isomorphic base64 library in 183 bytes
3 lines (2 loc) • 503 B
JavaScript
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o(e.b64Lite={})}(this,function(e){function o(e){return window.atob(e)}function n(e){return window.btoa(e)}function t(e){return n(unescape(encodeURIComponent(e)))}function f(e){return decodeURIComponent(escape(o(e)))}var a={atob:o,btoa:n,toBase64:t,fromBase64:f};e.atob=o,e.btoa=n,e.toBase64=t,e.fromBase64=f,e.default=a});
//# sourceMappingURL=b64-lite.umd.js.map