Strip ANSI escape codes from a string
Browse cluster: Terminal & CLI Output Styling →strip-ansi is a utility that removes ANSI escape codes from strings, addressing the need to clean terminal formatting and control characters from text output. Built for JavaScript and Node.js, it provides consistent behavior across Node.js versions, with the package actually serving as the basis for Node.js's built-in `stripVTControlCharacters` function. The project is maintained by Sindre Sorhus and Josh Junon, and is part of the broader ecosystem around the chalk terminal styling library.