when using the readline interface, everything from stdin gets printed twice to stdout:
var rl = require('readline');
var i = rl.createInterface(process.stdin, process.stdout);
when i run this code, everything i type in the terminal is duplicated. Typing 'hello world' yields:
hheelloo wwoorrlldd
I guess it makes sense that it does this, since the readline module is meant to pipe an input to an output. But isnt it also meant to be used to create command line interfaces? I'm confused as to how im supposed to use it. Help?