Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 3
    NodeJS is a huge dependency, when there are solutions that can use languages and tools already present in most systems. Commented Nov 14, 2017 at 16:50
  • Also, this is the slowest solution listed (see here) and you probably will notice the difference. Commented Nov 17, 2017 at 8:23
  • It's worth noting that all this module does is replaces all matches of the regex string.replace(ansiRegex(), '') which is defined here github.com/chalk/ansi-regex/blob/main/index.js. Commented Jun 13, 2021 at 2:23