UNPKG

read-first-line

Version:

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

20 lines (13 loc) 311 B
# Read-first-line Read first line of the file. Works fine with LF and CRLF line endings. ## Install ```bazaar npm install read-first-line ``` ## Usage ```js const readFirstLine = require("read-first-line"); readFirstLine("./file.txt").then((result) => { console.log("first line is: " + result); }); ```