Skip to content

stripAnsi

function stripAnsi(input): string;

Strip all ANSI escape codes from a string. Useful for measuring visible width.

ParameterType
inputstring

string