line-reader-sync
v0.1.0
Published
An synced line reader from file
Downloads
45,580
Readme
node-line-reader-sync
An sync version of nodejs line reader Only support \n nor \r\n currently.
LineReaderSync = require("line-reader-sync")
lrs = new LineReaderSync("path")
while(true){
var line = lrs.readline()
if(line === null){
console.log("EOF");
}else{
console.log("line without \n",line)
}
}
//or
lrs.toLines()
//["line1","line2"...]