{"name":"linerstream","version":"0.1.2","description":"Split a readable stream by newline characters","main":"index.js","directories":{"test":"test"},"scripts":{"test":"make test"},"author":{"name":"Noah Issaacson","email":"noah+npmjs@nisaacson.com","url":"https://github.com/nisaacson"},"license":"ISC","devDependencies":{"chai":"~1.8.1","mocha":"~1.16.2","sinon":"~1.7.3"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/nisaacson/linerstream.git"},"keywords":["stream","line","split","newline"],"bugs":{"url":"https://github.com/nisaacson/linerstream/issues"},"homepage":"https://github.com/nisaacson/linerstream","_id":"linerstream@0.1.2","dist":{"shasum":"51f77eaddf6ef57a059e21ba47549b917de918bf","tarball":"http://registry-npm.ywwl.com/linerstream/download/linerstream-0.1.2.tgz","integrity":"sha512-fE0Oy4VSY1EQ2/GFAMcylsZlrI3H4F4gH5XVugIJUB145kAey81PKdEgZhXeV9ec0wPbS0M8nYHPcN77/OgSdQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE93LeTE60aeYfBlfrRtXKE42/U6LCYIcgrN2APG8YKoAiALVYTOg/N5YHoBb4MgpksbhQcdrD/uRdBhQFrDlD/Thg=="}],"size":6804,"noattachment":false,"key":"/linerstream/-/linerstream-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"nisaacson","email":"noah+npmjs@nisaacson.com"},"maintainers":[{"name":"nisaacson","email":"noah+npmjs@nisaacson.com"}],"readme":"# linerstream\n\nSplit a readable stream by newline characters\n\n[![NPM](https://nodei.co/npm/linerstream.png)](https://nodei.co/npm/linerstream/)\n\n[![Build Status](https://travis-ci.org/nisaacson/linerstream.png)](https://travis-ci.org/nisaacson/linerstream)\n[![Dependency Status](https://david-dm.org/nisaacson/linerstream/status.png)](https://david-dm.org/nisaacson/linerstream)\n[![Code Climate](https://codeclimate.com/github/nisaacson/linerstream.png)](https://codeclimate.com/github/nisaacson/linerstream)\n\n# Installation\n```bash\nnpm install -S linerstream\n```\n\n# Usage\n\nCreate an instance of linestream and pipe a readable stream into that instance\n\n```javascript\nvar Linerstream = require('linerstream')\n// splitter is an instance of require('stream').Transform\nvar opts = {\n  highWaterMark: 2\n}\nvar splitter = new Linerstream(opts) // opts is optional\n\nvar readStream = fs.createReadStream('/file/with/line/breaks.txt')\nvar lineByLineStream = readStream.pipe(splitter)\nlineByLineStream.on('data', function(chunk) {\n  console.dir(chunk)  // no line breaks here :)\n})\n```\n\n\n## Override EOL\n\nIf you don't want to use the OS default `EOL` character, you can ovverride it when creating the stream\n\n```\nvar stream2 = new LinerStream({EOL: '\\n'})\n//force windows EOL\nvar stream3 = new LinerStream({EOL: '\\r\\n'})\n```\n","publish_time":1395355646276,"_cnpm_publish_time":1395355646276,"dist-tags":{"latest":"0.2.0"}}