← All repos

strip-ansi

Strip ANSI escape codes from a string

Browse cluster: Terminal & CLI Output Styling
75commits
14contributors
2languages

Tech stack & purpose

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.

Community & reference links

Languages

JavaScript
93.4%
TypeScript
6.6%

Contributors