PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@hashgraph/cryptography/lib/encoding

Просмотр файла: utf8.browser.cjs

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.decode = decode;
exports.encode = encode;

/**
 * @param {Uint8Array} data
 * @returns {string}
 */
function decode(data) {
  // eslint-disable-next-line node/no-unsupported-features/node-builtins
  return new TextDecoder().decode(data);
}
/**
 * @param {string} text
 * @returns {Uint8Array}
 */


function encode(text) {
  // eslint-disable-next-line node/no-unsupported-features/node-builtins
  return new TextEncoder().encode(text);
}

Выполнить команду


Для локальной разработки. Не используйте в интернете!