UNPKG

read-first-line

Version:

Read first line of the file. Works fine with LF and CRLF line endings.

3 lines (2 loc) 93 B
declare function readFirstLine(filePath: string): Promise<string>; export = readFirstLine;