linerstream
Split a readable stream by newline characters
Installation
npm install -S linerstream
Usage
Create an instance of linestream and pipe a readable stream into that instance
var Linerstream = // splitter is an instance of require('stream').Transformvar opts = highWaterMark: 2var splitter = opts // opts is optional var readStream = fsvar lineByLineStream = readStreamlineByLineStream
Override EOL
If you don't want to use the OS default EOL
character, you can ovverride it when creating the stream
var stream2 = new LinerStream({EOL: '\n'})
//force windows EOL
var stream3 = new LinerStream({EOL: '\r\n'})