Strips a string with ansi escape codes back to it's original form. Useful for when you need to get the actual length of a string.

  • Parameters

    • str: string

    Returns string

    import color from "chalk";

    const redString = color.red(redString);

    stripAnsi(redString);