UNPKG

@jsprismarine/color-parser

Version:
15 lines 563 B
/** * Parses a string with color codes. * @param {string} input - String to parse. * @param {string} [prefix='§'] - The prefix to use for color codes. * @param {boolean} [clearAtEnd=false] - Whether to clear the color at the end of the string. * @returns {string} The parsed string. * @example * ```typescript * const res = Parser('§cHello §eworld§r!'); * console.log(res); // 'Hello world!' * ``` */ declare const Parser: (input: string, prefix?: string, clearAtEnd?: boolean) => string; export default Parser; //# sourceMappingURL=Parser.d.ts.map