Node.js code for STDIN and STDOUT without using any library
suggest changeVersions
Introduction
This program reads standard input and writes it back to standard output. process is a global. It does not need require().
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
process.stdout.write(chunk);
});
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents