Reading from stdin, writing to stdout/stderr.
console.log→ stdout;console.error→ stderrprocess.stdout.writefor no trailing newlinereadlinefor interactive line-by-line input- pipe data through
process.stdin
See examples/.
Build a tiny CLI that asks two numbers and prints the sum.