Simple streaming readline module.
Read a file line by line.
Important. In node 10 there is a core module named readline. Please use linebyline instead, it is the same module just renamed:
npm install linebyline
npm install .npm test
Simple streaming readline module for NodeJS. Reads a file and buffer new lines emitting a line event for each line.
var readline = require'linebyline'rl = readline'./somefile.txt';rlon'line'// do something with the line of texton'error'// something went wrong;
BSD © Craig Brookes