when using the readline interface, everything starting with stdin is printed twice in stdout:
var rl = require('readline'); var i = rl.createInterface(process.stdin, process.stdout);
when I run this code, everything that I type in the terminal is duplicated. Entering "hello world" gives:
hheelloo wwoorrlldd
I assume it makes sense that he does this, since the readline module is designed to feed input to output. But isn't this also intended to be a command line interface? I am confused by how they should use it. Help?
source share