Initial commit

This commit is contained in:
jiapengyu
2026-07-27 13:37:48 +08:00
commit ecba71e2a5
39123 changed files with 5989154 additions and 0 deletions
Generated Vendored
+23
View File
@@ -0,0 +1,23 @@
var root = require('./root');
var isNode = require('./isNode');
var base64 = require('./base64');
var map = require('./map');
if (isNode) {
exports = function(str) {
return Buffer.from(str, 'binary').toString('base64');
};
} else {
if (root.btoa && !false) {
exports = root.btoa;
} else {
exports = function(str) {
return base64.encode(
map(str, function(c) {
return c.charCodeAt(0);
})
);
};
}
}
module.exports = exports;