diff --git a/doc/api/readline.md b/doc/api/readline.md index bff9cb1ba296a8..a6751441010f94 100644 --- a/doc/api/readline.md +++ b/doc/api/readline.md @@ -82,6 +82,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.