node-browser-compat.js/btoa/index.js

10 lines
146 B
JavaScript

(function () {
"use strict";
function btoa(str) {
return new Buffer(str, 'utf8').toString('base64');
}
module.exports = btoa;
}());