To use this module, do require('readline')
.
Takes two streams and creates a readline interface. The completer
function is used for autocompletion. When given a substring, it returns [substr, completedStr]
. TODO: write some code to make sure I'm right.
createInterface
is commonly used with process.stdin
and
process.stdout
in order to accept user input: