Blame view

node_modules/btoa/index.js 279 Bytes
f7563de62   Palak Handa   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  (function () {
    "use strict";
  
    function btoa(str) {
      var buffer
        ;
  
      if (str instanceof Buffer) {
        buffer = str;
      } else {
        buffer = new Buffer(str.toString(), 'binary');
      }
  
      return buffer.toString('base64');
    }
  
    module.exports = btoa;
  }());