node-progress TTY detection as an awesome feature, but sometimes terminal connection is lost due to stdio piping.
Here is a very simple example:
node ./simple.js 2>&1 | cat
There is no way to check in simple.js that the end of srderr pipe is connected to some terminal, we only know that srderr stream is piped somewhere. But as a user I know it'll end up in a terminal and still want to see a progress bar.