UNPKG

@berish/rfp

Version:

Binary secure transport organization protocol for peer communication using function fingerprints

13 lines 503 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPrintName = void 0; function getPrintName(func, synomicName, chunkPath) { if (synomicName) return synomicName.toString(); const name = typeof func !== 'function' ? '' : func['displayName'] || func.name || (/function ([^(]+)?\(/.exec(func.toString()) || [])[1]; return name || chunkPath || 'unknown'; } exports.getPrintName = getPrintName; //# sourceMappingURL=getPrintName.js.map