155
rated 0 times
[
157]
[
2]
/ answers: 1 / hits: 17764
/ 10 Years ago, mon, april 7, 2014, 12:00:00
Reading the official docs for the readline module, there is no end
event like other streams.
Trying
reader.on('end', cb);
Doesn't work.
How can I run a callback once there are no more lines to be read?
More From » node.js