Closed jkrems closed 7 years ago
assertive currently checks for process.isTTY. This is always undefined. The correct check would be process.stdout.isTTY:
assertive
process.isTTY
process.stdout.isTTY
> node -p process.isTTY undefined > node -p process.isTTY | cat undefined > node -p process.stdout.isTTY true > node -p process.stdout.isTTY | cat undefined
The current behavior means that assertive always uses colors, breaking redirection to file.
Closed via https://github.com/groupon/assertive/pull/37
assertive
currently checks forprocess.isTTY
. This is always undefined. The correct check would beprocess.stdout.isTTY
:The current behavior means that assertive always uses colors, breaking redirection to file.