my question maybe quite straightforward or may have no solution. So, I ask you to kindly help me finding out how to access information of the stdout redirect to out.txt
node do-nothing.js < in.txt > out.txt
In particular I need to access the filename "out.txt" in the script do-nothing.js (i.e. accessing process.stdout.______)
Tips: I've already noticed that process.stdout._type become 'fs' instead of 'tty' while applying a redirection.