I'm writing a command line interface for one of my programs, and I would like to use the colorized output of winston if it's appropriate (the output is a terminal and it's not redirected to a file).
In bash it can be done with the -t
test as this SO answer correctly says. But I'm looking for the node.js alternative for testing this.