У каждого процесса есть stdout, stdin, stderr.
В node.js - process.stdout.
process.stdout and process.stderr differ from other Node.js streams in important ways:
- They are used internally by console.log() and console.error(), respectively. Node.js docs