async-readline
v1.1.0
Published
Async wrapper for readline
Downloads
4
Readme
Async-readline
Async wrapper for readline
const async_readline = require('async-readline');
const rd = new async_readline({
input: process.stdin,
output: process.stdout,
terminal: false
});
(async () => {
let text;
text = await rd.line();
text = await rd.question("Tell me how much you love me");
})();
Methods
line
--- returns promise which resolves next line from inputquestion
--- prints its argument to output and then acts likeline