3 lines
610 B
JavaScript
3 lines
610 B
JavaScript
|
function r(r){return Buffer.from(r,"base64").toString("binary")}function t(r){for(var t=0,e=r;t<e.length;t+=1)if(String.prototype.charCodeAt.call(e[t],0)>255)throw new Error("Failed to execute 'btoa': The string to be encoded contains characters outside of the Latin1 range.");return Buffer.from(r,"binary").toString("base64")}function e(r){return Buffer.from(r).toString("base64")}function n(r){return Buffer.from(r,"base64").toString()}function o(r){return new Uint8Array(Buffer.from(r,"base64"))}export{r as atob,t as btoa,e as toBase64,n as fromBase64,o as toBuffer};
|
||
|
//# sourceMappingURL=b64-lite.mjs.map
|