Read first line of the file. Works fine with LF and CRLF line endings.
github.com/avin/read-first-line
avin/read-first-line