(function () {
"use strict";
function btoa(str) {
var buffer;
if (str instanceof Buffer) {
buffer = str;
} else {
buffer = Buffer.from(String(str), 'binary');
}
return buffer.toString('base64');
module.exports = btoa;
}());