#Nodejs readline how to#
It also allows us to look for only the relevant information, and stop the search once we have found that information.
Being able to read a file line by line provides us a chance to read the large files without loading them entirely in the memory. Accepts an options Object that takes the following values: input - the readable stream to listen to (Required). The Readline module provides a way of reading a datastream, one line at a time.