Strip ANSI color codes
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
.gitignore
README.md
index.js
package.json
test.js

README.md

##node-ansi-stripper

Strip ANSI color codes

Basically ripped from SO.

If you find yourself in a situation where you're streaming a colored repl somewhere else, such as a browser, you can use this module to escape the terminal ansi colors.

usable as command line tool too
	cat colorful.log | ansistrip > puretext.log