I\'m looking to process a text file with node using a command line call like:
node app.js < input.txt
Each line of the file needs to be proce
// Work on POSIX and Windows var fs = require("fs"); var stdinBuffer = fs.readFileSync(0); // STDIN_FILENO = 0 console.log(stdinBuffer.toString());