UNPKG

n8n-nodes-tshark

Version:
19 lines 525 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TsharkUtils = void 0; class TsharkUtils { static isHex(str) { const hexRegex = /^[0-9A-Fa-f]+$/; return hexRegex.test(str) && str.length % 2 === 0; } static decodeSSID(ssid) { if (this.isHex(ssid)) { return Buffer.from(ssid, 'hex').toString('utf8'); } else { return ssid; } } } exports.TsharkUtils = TsharkUtils; //# sourceMappingURL=TsharkUtils.js.map