I have a test.js file with the following content:
let i = ''
process.stdin.on('data', (c) => (i += c))
process.stdin.on('end', () => {
  const { EOL } = require('os')
  const lines = i.split(EOL) 
  console.log(lines)
})
I figured out that when I run this line bellow  I read from input.txt and output to output.txt. Everything works just fine.
node test.js < input.txt > output.txt
However, I cannot find any info in node.js official docs about command line arguments like < and > . Am I looking in a wrong place? Is there somewhere a full list of possible arguments of this type and how to use them? Thanks.
 
    