An issue to not forget.
It would be handy to sync readline API with for-await support in readable streams, so we can do something like this (compare examples here and here):
'use strict';constreadline=require('readline');constfs=require('fs');asyncfunctionprocessLineByLine(filePath){constrli=readline.createInterface({input: fs.createReadStream(filePath),crlfDelay: Infinity});forawait(constlineofrli){console.log(line);}}processLineByLine('config.ini').catch(console.error);An evidence of need: "Alas" from Axel Rauschmayer.
An association: Perl <FILEHANDLE> operator.
An issue to not forget.
It would be handy to sync readline API with
for-awaitsupport in readable streams, so we can do something like this (compare examples here and here):An evidence of need: "Alas" from Axel Rauschmayer.
An association: Perl
<FILEHANDLE>operator.