line-reader-sync
An synced line reader from file
Last updated 7 years ago by nstal .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install line-reader-sync 
SYNC missed versions from official npm registry.

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"...]

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

2 Versions

  • 0.1.0                                ...           5 years ago
  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 5
Last Month 13
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |