maleck13 / readline

read line module for node js
93 stars 27 forks source link

Pauseable feature #28

Open sunnytambi opened 2 years ago

sunnytambi commented 2 years ago

There is no way that we can pause during read. Suppose there is a huge file we are reading and we need to process something with each line or bunch of lines, we cannot pause the reading behaviour so that do some in-between processing. fs.createReadStream however has a stream.pause() feature which is very useful.