{"name":"linerstream","version":"0.0.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"},"_id":"linerstream@0.0.2","dist":{"shasum":"1437129295e80dafd70a304cd33c373446f0d36b","tarball":"http://registry-npm.ywwl.com/linerstream/download/linerstream-0.0.2.tgz","integrity":"sha512-r14L2/DfzTlgqU684kesYtXptkz6FSEyJBfzN6EhyNSH/DjAsXwz7cje5djAOswRp0LZ2zrwX4tBWH5xF4eY+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD2ZCFQHWgv3063uSBHC6ag8CIH9JQ0PkTZvXipmaopeAIgde0iRuKy3H7d+w9hE9srrWQCvqAr38U+eyLbUJu8//o="}],"size":4687,"noattachment":false,"key":"/linerstream/-/linerstream-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.22","_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":1389126352036,"_cnpm_publish_time":1389126352036,"dist-tags":{"latest":"0.2.0"}}