diff --git a/doc/api/readline.md b/doc/api/readline.md index 636dbc7a7a78de..724fbc6be99afc 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -111,6 +111,9 @@ The `'line'` event is emitted whenever the `input` stream receives an end-of-line input (`\n`, `\r`, or `\r\n`). This usually occurs when the user presses Enter or Return. +The `'line'` event is also emitted if new data has been read from a stream and +that stream ends without a final end-of-line marker. + The listener function is called with a string containing the single line of received input.