btoa.js/index.js

10 lines
148 B
JavaScript

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