UNPKG

@ocubist/error-alchemy

Version:

A powerful Node.js error-handling-framework with custom error types for easy debugging, enhanced error management, strong zod-support and useful quality-of-life-functionality for asserting and validating values.

14 lines 528 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.escapeIdentifierPart = void 0; /** * Escapes a part of an identifier by replacing certain characters and trimming whitespace. * * @param {string} part - The part of the identifier to escape. * @returns {string} The escaped identifier part. */ var escapeIdentifierPart = function (part) { return part.replace("///g", "__").trim(); }; exports.escapeIdentifierPart = escapeIdentifierPart; //# sourceMappingURL=escapeIdentifierPart.js.map