File "index.js"

Full Path: C:/wamp64/www/INTERPRETE2/frontend/node_modules/btoa/index.js
File size: 273 bytes
MIME-type: text/plain
Charset: utf-8

(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;
}());