hrms-manual/node_modules/btoa/index.js
2023-09-06 14:51:44 +07:00

17 lines
273 B
JavaScript

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