{"name":"linerstream","version":"0.1.4","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","gitHead":"fd36bbb73f982b0ff3b94a43d4f9dec9968fe010","_id":"linerstream@0.1.4","_shasum":"5de7bf69faa2b0f9d85e8332099b70e419a845d5","_from":".","_npmVersion":"1.4.20","_npmUser":{"name":"nisaacson","email":"noah+npmjs@nisaacson.com"},"maintainers":[{"name":"nisaacson","email":"noah+npmjs@nisaacson.com"},{"name":"apriendeau","email":"austin@apriendeau.com"}],"dist":{"shasum":"5de7bf69faa2b0f9d85e8332099b70e419a845d5","tarball":"http://registry-npm.ywwl.com/linerstream/download/linerstream-0.1.4.tgz","integrity":"sha512-Marl7QA0WZsab/8plKVmL2OSSLCleGr33CSWa1NwSmDn8PN1Kvqeqinx1Qm0lzbzuUs6IiMRYWX+mEbY+SKx1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGdr96xnzZ60wIkqgo12oUCr1+FQyZsB7OlQCWqoFFNxAiEAtiuLXoabk2Gk/gS7bp6ySaHg/v1Y6u1g4si1Sc94srM="}],"size":6799,"noattachment":false,"key":"/linerstream/-/linerstream-0.1.4.tgz"},"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":1407764246554,"_cnpm_publish_time":1407764246554,"dist-tags":{"latest":"0.2.0"}}