n8n-nodes-tshark
Version:
Tshark node
19 lines • 525 B
JavaScript
;
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