@nevware21/chromacon
    Preparing search index...

    Type Alias ReplacerFn

    ReplacerFn: (match: string, ...args: any[]) => string

    A function that can be used to replace ANSI escape sequences in a string.

    Type Declaration

      • (match: string, ...args: any[]): string
      • Parameters

        • match: string
        • ...args: any[]

          Additional arguments passed by the String.prototype.replace method.

        Returns string

        The replacement string.

    0.1.3

    const replacer: ReplacerFn = (match) => match === "\u001b[31m" ? "" : match;
    replaceAnsi("\u001b[31mHello\u001b[39m", replacer);