UNPKG

@ton.js/core

Version:

TonWeb - JavaScript API for TON blockchain

14 lines 536 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bytesToString = exports.stringToBytes = exports.textDecoder = exports.textEncoder = void 0; exports.textEncoder = new TextEncoder(); exports.textDecoder = new TextDecoder(); function stringToBytes(text) { return exports.textEncoder.encode(text); } exports.stringToBytes = stringToBytes; function bytesToString(bytes) { return exports.textDecoder.decode(bytes); } exports.bytesToString = bytesToString; //# sourceMappingURL=text-encoding.js.map