https://nodejs.org/api/readline.html#readline_example_read_file_stream_line_by_line
Would it be for more efficiency, speed, resource saving and consistency to update this call:
const rl = readline.createInterface({
input: fs.createReadStream('sample.txt')
});
with these options:
const rl = readline.createInterface({
input: fs.createReadStream('sample.txt'),
terminal: false,
historySize: 0
});