simple-readline
v1.0.1
Published
A simple readline module for node to read one line asynchronously
Downloads
7
Readme
csimple-readline
A simple module to use readline in node
Example
Basic Usage
await readline() // returns a string
Echo input
const readline = require("simple-readline");
(async() => {
while(true) {
console.log(await readline());
}
})();
If two readlines are called at the same time, the one called first will be returned first