{"name":"linerstream","version":"0.2.0","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":"58a547f3d1eae70ebf54d399b18b60a4374b3c6c","_id":"linerstream@0.2.0","_shasum":"a0dad4bed7245d582b3173b22b1e3cb3c587f103","_from":".","_npmVersion":"4.4.1","_nodeVersion":"7.7.2","_npmUser":{"name":"nisaacson","email":"noah+npmjs@nisaacson.com"},"dist":{"shasum":"a0dad4bed7245d582b3173b22b1e3cb3c587f103","tarball":"http://registry-npm.ywwl.com/linerstream/download/linerstream-0.2.0.tgz","integrity":"sha512-Ally3f4uv50ELwVedutc6AisNorL+JRXsQmae/a28GOdQh4IkdIXsr/zSRGuszWaXCkfAZrQOjdrClWWrPEOyw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGFamlNKNPUcBmW2go3OgnbzUclOHgisDRIB4Q4Bb0xAiEA9Ncf7B9KzqOkVmwgJoFJ0GRo0992APGTgKc/AYLvAls="}],"size":6958,"noattachment":false,"key":"/linerstream/-/linerstream-0.2.0.tgz"},"maintainers":[{"name":"nisaacson","email":"noah+npmjs@nisaacson.com"},{"name":"apriendeau","email":"austin@apriendeau.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/linerstream-0.2.0.tgz_1489337539987_0.9480767999775708"},"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":1489337540614,"_cnpm_publish_time":1489337540614,"dist-tags":{"latest":"0.2.0"}}