Message from JavaScript discussions

June 2019

— Wasn't that a module?

— 

For general stream handling, read this:
https://nodejs.org/api/stream.html#stream_stream

For reading lines:
https://nodejs.org/api/readline.html#readline_readline

— It's a builtin module

— I'm trying to use the file system module

— let lines = 0;

rl.on('line', () => lines++);
rl.once('close', () => console.log(lines));

— Essentially that

— I'll let you use the docs to fill in the rest

— I think that i did it

— maybe

— Show code

— It works

— It works on my machine