readline-async-generator
v1.0.0
Published
ES8 async generator for nodejs readline on stdin
Maintainers
Readme
readline-async-generator
ES8 async generator for nodejs readline on stdin. Requiere node 10+.
install
yarn add readline-async-generatorusage
const readlineAsyncGenerator = require("readline-async-generator");
(async function(){
const lineIt = readlineAsyncGenerator();
for await(const line of lineIt) {
//do something with the stdin line
}
})();