first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
17
node_modules/btoa/index.js
generated
vendored
Normal file
17
node_modules/btoa/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
(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;
|
||||
}());
|
||||
Loading…
Add table
Add a link
Reference in a new issue