How to detect if Node's process.stdout is being piped? How to detect if Node's process.stdout is being piped? shell shell