base64.js 252 B

1234567
  1. if(typeof global !== "undefined"){
  2. var g = global;
  3. g.btoa = function (data) { return Buffer.from(data, "binary").toString("base64"); };
  4. g.atob = function (data) { return Buffer.from(data, "base64").toString("binary"); };
  5. }