code: function _btoa(str) {
    let buffer;
  
    if (str instanceof Buffer) {
      buffer = str;
    } else {
      buffer = Buffer.from(str.toString(), "binary");
    }
  
    return buffer.toString("base64");
  }
docs: /* global Buffer: false /* global setTimeout: false /* global log: false /* eslint-disable more/no-then, no-bitwise, no-nested-ternary