Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (8 sloc) 453 Bytes

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
Jump to Line
Something went wrong with that request. Please try again.