Yesterday, I had the great pleasure of talking at the JavaScript Global Summit and presenting a topic related to iterator protocols (sync and async) in JavaScript. If that's something you'd be interested in, check out my slides: https://lnkd.in/ea3RQ8Jn
API/Node.js lead at MyUnisoft. Node Security WG. OSS Maintainer.
7moAnother solution for line by line is to use readLines API on the Node.js filehandle (soon even easier with using const file).