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

10 lines
159 B
JavaScript

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