{"_id":"line-stream","_rev":"373020","name":"line-stream","description":"split/binary-split but lines contain byte offset in the source stream and gives access to last line fragment","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"soldair","email":"soldair@gmail.com"}],"time":{"modified":"2021-07-27T06:08:23.000Z","created":"2013-02-17T01:24:14.288Z","1.0.0":"2015-12-16T15:08:22.581Z","0.0.3":"2013-06-21T23:30:40.641Z","0.0.2":"2013-05-06T20:33:54.981Z","0.0.1":"2013-05-06T20:27:57.070Z","0.0.0":"2013-02-17T01:24:14.288Z"},"users":{"binarymax":true},"author":{"name":"Ryan day"},"repository":{"type":"git","url":"git://github.com/soldair/node-line-stream.git"},"versions":{"1.0.0":{"name":"line-stream","version":"1.0.0","description":"split/binary-split but lines contain byte offset in the source stream and gives access to last line fragment","main":"index.js","scripts":{"test":"nyc tape test/*.js"},"repository":{"type":"git","url":"git://github.com/soldair/node-line-stream.git"},"keywords":["line","stream","string","easy"],"author":{"name":"Ryan day"},"license":"ISC","dependencies":{"through2":"^2.0.0"},"devDependencies":{"nyc":"^5.0.1","tap":"~0.4.0","tape":"^4.2.2"},"gitHead":"a28c17cfaa171fe0478270bc7e1e284c3866d10b","bugs":{"url":"https://github.com/soldair/node-line-stream/issues"},"homepage":"https://github.com/soldair/node-line-stream#readme","_id":"line-stream@1.0.0","_shasum":"d3e3853174803fd31369c0e4366cb0808b42ade7","_from":".","_npmVersion":"3.5.2","_nodeVersion":"4.2.3","_npmUser":{"name":"soldair","email":"soldair@gmail.com"},"dist":{"shasum":"d3e3853174803fd31369c0e4366cb0808b42ade7","size":2793,"noattachment":false,"key":"/line-stream/-/line-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/line-stream/download/line-stream-1.0.0.tgz"},"maintainers":[{"name":"soldair","email":"soldair@gmail.com"}],"directories":{},"publish_time":1450278502581,"_cnpm_publish_time":1450278502581,"_hasShrinkwrap":false},"0.0.3":{"name":"line-stream","version":"0.0.3","description":"simple line parsing string emitting stream. tired of implementing line delimited streams ;)","main":"index.js","scripts":{"test":"tap test/"},"repository":{"type":"git","url":"git://github.com/soldair/node-line-stream.git"},"keywords":["line","stream","string","easy"],"author":{"name":"Ryan day"},"license":"BSD","readmeFilename":"README.md","gitHead":"599d639b9fad64ba7bb097bc1cda11f7ca3edde0","dependencies":{"through":"~2.3.4"},"devDependencies":{"tap":"~0.4.0"},"bugs":{"url":"https://github.com/soldair/node-line-stream/issues"},"_id":"line-stream@0.0.3","dist":{"shasum":"6e771ce8e1c7248623b3e53d8c4221d6802b2284","size":1154,"noattachment":false,"key":"/line-stream/-/line-stream-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/line-stream/download/line-stream-0.0.3.tgz"},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"soldair","email":"soldair@gmail.com"},"maintainers":[{"name":"soldair","email":"soldair@gmail.com"}],"directories":{},"publish_time":1371857440641,"_cnpm_publish_time":1371857440641,"_hasShrinkwrap":false},"0.0.2":{"name":"line-stream","version":"0.0.2","description":"simple line parsing string emitting stream. tired of implementing line delimited streams ;)","main":"index.js","scripts":{"test":"tap test/"},"repository":{"type":"git","url":"git://github.com/soldair/node-line-stream.git"},"keywords":["line","stream","string","easy"],"author":{"name":"Ryan day"},"license":"BSD","readmeFilename":"README.md","gitHead":"599d639b9fad64ba7bb097bc1cda11f7ca3edde0","dependencies":{"through":"~2.2.0"},"devDependencies":{"tap":"~0.4.0"},"_id":"line-stream@0.0.2","dist":{"shasum":"a1d0bbc7c781559c34db09f70e0a4b1e7962a4bd","size":1149,"noattachment":false,"key":"/line-stream/-/line-stream-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/line-stream/download/line-stream-0.0.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"soldair","email":"soldair@gmail.com"},"maintainers":[{"name":"soldair","email":"soldair@gmail.com"}],"directories":{},"publish_time":1367872434981,"_cnpm_publish_time":1367872434981,"_hasShrinkwrap":false},"0.0.1":{"name":"line-stream","version":"0.0.1","description":"simple line parsing string emitting stream. tired of implementing line delimited streams ;)","main":"index.js","scripts":{"test":"tap test/"},"repository":{"type":"git","url":"git://github.com/soldair/node-line-stream.git"},"keywords":["line","stream","string","easy"],"author":{"name":"Ryan day"},"license":"BSD","readmeFilename":"README.md","gitHead":"599d639b9fad64ba7bb097bc1cda11f7ca3edde0","dependencies":{"through":"~2.2.0"},"devDependencies":{"tap":"~0.4.0"},"_id":"line-stream@0.0.1","dist":{"shasum":"592c50081ec9d171292137e0e2b32e7979e54596","size":1132,"noattachment":false,"key":"/line-stream/-/line-stream-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/line-stream/download/line-stream-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"soldair","email":"soldair@gmail.com"},"maintainers":[{"name":"soldair","email":"soldair@gmail.com"}],"directories":{},"publish_time":1367872077070,"_cnpm_publish_time":1367872077070,"_hasShrinkwrap":false},"0.0.0":{"name":"line-stream","version":"0.0.0","description":"simple line parsing string emitting stream. tired of implementing line delimited streams ;)","main":"index.js","scripts":{"test":"tap test/"},"repository":{"type":"git","url":"git://github.com/soldair/node-line-stream.git"},"keywords":["line","stream","string","easy"],"author":{"name":"Ryan day"},"license":"BSD","readmeFilename":"README.md","gitHead":"599d639b9fad64ba7bb097bc1cda11f7ca3edde0","dependencies":{"through":"~2.2.0"},"devDependencies":{"tap":"~0.4.0"},"_id":"line-stream@0.0.0","dist":{"shasum":"888b7cc7951c6a05ce4d696dd1e6b8262371bb45","size":1120,"noattachment":false,"key":"/line-stream/-/line-stream-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/line-stream/download/line-stream-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"soldair","email":"soldair@gmail.com"},"maintainers":[{"name":"soldair","email":"soldair@gmail.com"}],"directories":{},"publish_time":1361064254288,"_cnpm_publish_time":1361064254288,"_hasShrinkwrap":false}},"readme":"line-stream\n===========\n\nsplit/binary-split but lines contain byte offset in the source stream and gives access to last line fragment\n\n- this module leaves the delimiter on the resulting buffer.\n- all values are cast to buffers and emitted as buffers.\n- this module is just as fast as binary-split.\n\n\n```js\nvar linestream = require('line-stream');\nvar s = linestream();\n\ns.on('data',function(line){\n  console.log('line of data ',line+'');\n  console.log('i come from ',line.start,'byte offset in the file')\n})\n\nfs.createReadStream(somefile).pipe(s);\n\n```\n\n\napi\n---\n\n### var linestream = require('line-stream');\n  - transform stream (through2)\n\n### linestream(delimiter) || linestream({delimiter:os.EOL,start:0})\n  - returns transform stream.\n  - options\n    - delimiter, defaults to os.EOL but can be anything\n    - start, defaults to 0. this is an offset applied to the start property of each line's \"line.start\" property. just helpful.\n\n### stream\n  - **properties**\n    - stream.fragment, at any time this property contains the fragment of the last incomplete line or an empty buffer.\n  - **events**, \n    in addition to standard stream events this module also emits\n    - fragment, \n     emits before end if there is a line fragment in the fragment property.\n     \n\n\n","_attachments":{},"homepage":"https://github.com/soldair/node-line-stream#readme","bugs":{"url":"https://github.com/soldair/node-line-stream/issues"},"license":"ISC"}