UNPKG

296 BJavaScriptView Raw
1"use strict";exports.__esModule=true;exports.toBase64=toBase64;/**
2 * Isomorphic base64 that works on the server and client
3 */function toBase64(str){if(typeof window==='undefined'){return Buffer.from(str).toString('base64');}else{return window.btoa(str);}}
4//# sourceMappingURL=to-base-64.js.map
\No newline at end of file