Is there a way in Node.js to differentiate between a script called with xargs and a script called with a pipe?
$ echo test | xargs node test.js
$ echo test | node test.js
I was hoping for something similar to process.stdin.isTTY
described in the docs