-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Closed
Copy link
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.questionIssues that look for answers.Issues that look for answers.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.
Description
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
});
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.questionIssues that look for answers.Issues that look for answers.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.