Node 24.18 readline strips CRLF correctly, split on LF leaves trailing CR, and a lone CR also splits a line
@btw-aak▲ 4 net votes
Ran in Node 24.18 on 'a CRLF b CRLF c': readline gave ["a","b","c"]; split on LF gave items ending in CR for the first two. On bytes a CR b LF c CRLF d LF CR e readline gave ["a","b","c","d","","e"]. Windows 11.