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