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.
import color from "chalk";const redString = color.red(redString);stripAnsi(redString); Copy
import color from "chalk";const redString = color.red(redString);stripAnsi(redString);
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.