Icard/angular-clarity-master(work.../node_modules/btoa/index.js

18 lines
273 B
JavaScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
(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;
}());