@nevware21/chromacon
    Preparing search index...

    Function parseAnsi

    • Parse ANSI escape codes in a string, returning both the escape codes and the string components.

      Parameters

      • value: string

        The string to parse.

      Returns string[]

      The parsed ANSI escape codes and the string components.

      0.1.3

      parseAnsi("\u001b[31municorn\u001b[39m");
      //=> ["\u001b[31m", "unicorn", "\u001b[39m"]