Skip to main content
Correct the name of the package (strip-ansi is the underlying package, strip-ansi-cli is the package with the command line interface).
Source Link

If your system has access to NodeJS you could install the following Node package, strip-ansistrip-ansi-cli.

$ npm install -g strip-ansi-cli

You can then run your command like so:

$ command-that-produces-colored-output | strip-ansi > outfile

If your system has access to NodeJS you could install the following Node package, strip-ansi.

$ npm install -g strip-ansi

You can then run your command like so:

$ command-that-produces-colored-output | strip-ansi > outfile

If your system has access to NodeJS you could install the following Node package, strip-ansi-cli.

$ npm install -g strip-ansi-cli

You can then run your command like so:

$ command-that-produces-colored-output | strip-ansi > outfile
added 193 characters in body
Source Link
slm
  • 379.8k
  • 127
  • 793
  • 897

If your system has access to NodeJS you could install the following Node package, strip-ansi.

$ npm install -g strip-ansi
 

You can then run your command like so:

$ command-that-produces-colored-output | strip-ansi > outfile
$ npm install -g strip-ansi
 
$ command-that-produces-colored-output | strip-ansi > outfile

If your system has access to NodeJS you could install the following Node package, strip-ansi.

$ npm install -g strip-ansi

You can then run your command like so:

$ command-that-produces-colored-output | strip-ansi > outfile
Source Link

$ npm install -g strip-ansi

$ command-that-produces-colored-output | strip-ansi > outfile