maleck13/readline — pull request #2 by wilson428 (2014-10-03 14:07:24+00:00)
Title: Added \r as newline character, emits line on last line

This checks for leftover contents in "line" when the close event on the stream fires and emits it. I hadn't realized that there's is also an unstable "readline" core module, but it has the same problem.

I also added \r as a newline character (buffer code 13).