{"_id":"split2","_rev":"2957086","name":"split2","description":"split a Text Stream into a Line Stream, using Stream 3","dist-tags":{"latest":"4.2.0"},"maintainers":[{"name":"matteo.collina","email":""}],"time":{"modified":"2023-04-27T07:41:36.000Z","created":"2014-03-12T12:17:59.330Z","4.2.0":"2023-03-26T08:33:02.359Z","4.1.0":"2021-10-24T12:22:57.350Z","4.0.0":"2021-10-14T17:09:52.946Z","3.2.2":"2020-08-22T08:47:37.202Z","3.2.1":"2020-08-17T14:33:49.640Z","3.2.0":"2020-08-17T14:33:11.541Z","3.1.1":"2019-03-16T22:09:31.611Z","3.1.0":"2018-12-14T10:31:05.612Z","3.0.0":"2018-08-12T22:11:38.140Z","2.2.0":"2017-09-25T09:13:11.905Z","2.1.1":"2017-01-02T08:29:27.243Z","2.1.0":"2016-05-19T17:11:44.551Z","2.0.1":"2016-02-06T10:44:56.804Z","2.0.0":"2016-01-20T14:08:41.425Z","1.1.1":"2016-01-07T17:23:03.269Z","1.1.0":"2015-12-24T08:24:47.344Z","1.0.0":"2015-06-13T16:14:10.562Z","0.2.1":"2014-08-12T09:25:29.291Z","0.2.0":"2014-08-09T13:29:31.437Z","0.1.2":"2014-06-17T14:03:57.220Z","0.1.1":"2014-03-13T16:47:04.844Z","0.1.0":"2014-03-12T12:17:59.330Z"},"users":{"timhudson":true,"matteo.collina":true,"zhangyaochun":true,"smerik":true,"barenko":true,"shanewholloway":true,"mugeso":true,"uh-engineer":true,"dzhou777":true,"seangenabe":true,"simon129":true,"kodekracker":true,"sheikhsajid":true},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"versions":{"4.2.0":{"name":"split2","version":"4.2.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"lint":"standard --verbose","unit":"nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js","coverage":"nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js","test:report":"npm run lint && npm run unit:report","test":"npm run lint && npm run unit","legacy":"tape test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"engines":{"node":">= 10.x"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"binary-split":"^1.0.3","callback-stream":"^1.1.0","fastbench":"^1.0.0","nyc":"^15.0.1","pre-commit":"^1.1.2","standard":"^17.0.0","tape":"^5.0.0"},"gitHead":"919b26b59c9762b817a121f4416ccc44d82043ad","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@4.2.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"c9c5920904d148bab0b9f67145f245a86aadbfa4","size":4668,"noattachment":false,"key":"/split2/-/split2-4.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-4.2.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"matteo.collina","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2_4.2.0_1679819582180_0.03365335223016652"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-26T08:33:02.359Z","publish_time":1679819582359,"_cnpm_publish_time":1679819582359},"4.1.0":{"name":"split2","version":"4.1.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"lint":"standard --verbose","unit":"nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js","coverage":"nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js","test:report":"npm run lint && npm run unit:report","test":"npm run lint && npm run unit","legacy":"tape test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"engines":{"node":">= 10.x"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"binary-split":"^1.0.3","callback-stream":"^1.1.0","fastbench":"^1.0.0","nyc":"^15.0.1","pre-commit":"^1.1.2","standard":"^16.0.1","tape":"^5.0.0"},"gitHead":"06818424cb3d010131255f81aa346f1846fd86e5","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@4.1.0","_nodeVersion":"16.11.0","_npmVersion":"8.0.0","dist":{"shasum":"101907a24370f85bb782f08adaabe4e281ecf809","size":4623,"noattachment":false,"key":"/split2/-/split2-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-4.1.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"matteo.collina","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2_4.1.0_1635078177193_0.9791661252516637"},"_hasShrinkwrap":false,"publish_time":1635078177350,"_cnpm_publish_time":1635078177350},"4.0.0":{"name":"split2","version":"4.0.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"lint":"standard --verbose","unit":"nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js","coverage":"nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js","test:report":"npm run lint && npm run unit:report","test":"npm run lint && npm run unit","legacy":"tape test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"binary-split":"^1.0.3","callback-stream":"^1.1.0","fastbench":"^1.0.0","nyc":"^15.0.1","pre-commit":"^1.1.2","standard":"^16.0.1","tape":"^5.0.0"},"gitHead":"b66af507ca6eb9ff67d6418be934efeb401c512d","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@4.0.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.0","dist":{"shasum":"c76cb53ad55040ddff3a9c3b73fc88a4690f047c","size":4606,"noattachment":false,"key":"/split2/-/split2-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-4.0.0.tgz"},"_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"directories":{},"maintainers":[{"name":"matteo.collina","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2_4.0.0_1634231392801_0.4202722241424539"},"_hasShrinkwrap":false,"publish_time":1634231392946,"_cnpm_publish_time":1634231392946},"3.2.2":{"name":"split2","version":"3.2.2","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"lint":"standard --verbose","unit":"nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js","coverage":"nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js","test:report":"npm run lint && npm run unit:report","test":"npm run lint && npm run unit","legacy":"tape test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"binary-split":"^1.0.3","callback-stream":"^1.1.0","fastbench":"^1.0.0","nyc":"^15.0.1","pre-commit":"^1.1.2","safe-buffer":"^5.1.1","standard":"^14.0.0","tape":"^5.0.0"},"dependencies":{"readable-stream":"^3.0.0"},"gitHead":"2b64b3d96fe34bf4e8bbd2a905886c33b798b742","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@3.2.2","_nodeVersion":"12.18.1","_npmVersion":"6.14.8","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"bf2cf2a37d838312c249c89206fd7a17dd12365f","size":4689,"noattachment":false,"key":"/split2/-/split2-3.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-3.2.2.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2_3.2.2_1598086057086_0.6395128618097448"},"_hasShrinkwrap":false,"publish_time":1598086057202,"_cnpm_publish_time":1598086057202},"3.2.1":{"name":"split2","version":"3.2.1","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"lint":"standard --verbose","unit":"nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js","coverage":"nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js","test:report":"npm run lint && npm run unit:report","test":"npm run lint && npm run unit","legacy":"tape test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"binary-split":"^1.0.3","callback-stream":"^1.1.0","fastbench":"^1.0.0","nyc":"^15.0.1","pre-commit":"^1.1.2","safe-buffer":"^5.1.1","standard":"^14.0.0","tape":"^5.0.0"},"dependencies":{"readable-stream":"^3.0.0"},"gitHead":"2b8ad86b8207f8222a1d63be3f5dcc66f72ab286","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@3.2.1","_nodeVersion":"12.18.1","_npmVersion":"6.14.7","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"9d093c43ed27498b0c9b78d54bb47dade1dc01fd","size":4690,"noattachment":false,"key":"/split2/-/split2-3.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-3.2.1.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2_3.2.1_1597674829543_0.18109119427924258"},"_hasShrinkwrap":false,"publish_time":1597674829640,"_cnpm_publish_time":1597674829640},"3.2.0":{"name":"split2","version":"3.2.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"lint":"standard --verbose","unit":"nyc --lines 100 --branches 100 --functions 100 --check-coverage --reporter=text tape test.js","coverage":"nyc --reporter=html --reporter=cobertura --reporter=text tape test/test.js","test:report":"npm run lint && npm run unit:report","test":"npm run lint && npm run unit","legacy":"tape test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"binary-split":"^1.0.3","callback-stream":"^1.1.0","fastbench":"^1.0.0","nyc":"^15.0.1","pre-commit":"^1.1.2","safe-buffer":"^5.1.1","standard":"^14.0.0","tape":"^5.0.0"},"dependencies":{"readable-stream":"^3.0.0"},"gitHead":"3d49c239103f33fa41edc68493892b1f4cc3d365","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@3.2.0","_nodeVersion":"12.18.1","_npmVersion":"6.14.7","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"af85496e575ba7b7edcf95d88e4b7378d3921d09","size":6833,"noattachment":false,"key":"/split2/-/split2-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-3.2.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2_3.2.0_1597674791429_0.08463231004437644"},"_hasShrinkwrap":false,"publish_time":1597674791541,"_cnpm_publish_time":1597674791541},"3.1.1":{"name":"split2","version":"3.1.1","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"standard && tap -b test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"binary-split":"^1.0.3","callback-stream":"^1.1.0","fastbench":"^1.0.0","pre-commit":"^1.1.2","safe-buffer":"^5.1.1","standard":"^12.0.0","tap":"^12.0.0"},"dependencies":{"readable-stream":"^3.0.0"},"greenkeeper":{"ignore":["tap"]},"gitHead":"a7ebf268a646be4c8507d909b822f4fd1e34a2be","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@3.1.1","_nodeVersion":"11.12.0","_npmVersion":"6.9.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"c51f18f3e06a8c4469aaab487687d8d956160bb6","size":4456,"noattachment":false,"key":"/split2/-/split2-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-3.1.1.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2_3.1.1_1552774171472_0.751155169532232"},"_hasShrinkwrap":false,"publish_time":1552774171611,"_cnpm_publish_time":1552774171611},"3.1.0":{"name":"split2","version":"3.1.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"standard && tap -b test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"binary-split":"^1.0.3","callback-stream":"^1.1.0","fastbench":"^1.0.0","pre-commit":"^1.1.2","safe-buffer":"^5.1.1","standard":"^12.0.0","tap":"^12.0.0"},"dependencies":{"readable-stream":"^3.0.0"},"greenkeeper":{"ignore":["tap"]},"gitHead":"a9b7da45e6dacdd5e33b52907cadaefb73fd4aa8","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"11.3.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"064bbfac70cdb66f77827870d42f159a8b442201","size":4442,"noattachment":false,"key":"/split2/-/split2-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-3.1.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2_3.1.0_1544783465418_0.7891068873319871"},"_hasShrinkwrap":false,"publish_time":1544783465612,"_cnpm_publish_time":1544783465612},"3.0.0":{"name":"split2","version":"3.0.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"standard && tap -b test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"binary-split":"^1.0.3","callback-stream":"^1.1.0","fastbench":"^1.0.0","pre-commit":"^1.1.2","safe-buffer":"^5.1.1","standard":"^11.0.0","tap":"^12.0.0"},"dependencies":{"readable-stream":"^3.0.0"},"greenkeeper":{"ignore":["tap"]},"gitHead":"53c8b0a00e4280b38bfda40f7ecf0db4e70e341f","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@3.0.0","_npmVersion":"6.3.0","_nodeVersion":"8.11.3","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"55057cd560687a7ef6464471597404577ff1735d","size":4041,"noattachment":false,"key":"/split2/-/split2-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-3.0.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2_3.0.0_1534111898054_0.9868726058710928"},"_hasShrinkwrap":false,"publish_time":1534111898140,"_cnpm_publish_time":1534111898140},"2.2.0":{"name":"split2","version":"2.2.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"standard && tap -b test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"callback-stream":"^1.1.0","fastbench":"^1.0.0","pre-commit":"^1.1.2","safe-buffer":"^5.1.1","standard":"^10.0.0","tap":"^10.0.0"},"dependencies":{"through2":"^2.0.2"},"gitHead":"ba1f582661a1ebb3b1f6ea4059c98bd9a73b7a11","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@2.2.0","_npmVersion":"5.4.2","_nodeVersion":"6.11.1","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"186b2575bcf83e85b7d18465756238ee4ee42493","size":3936,"noattachment":false,"key":"/split2/-/split2-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-2.2.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/split2-2.2.0.tgz_1506330790940_0.4804259219672531"},"directories":{},"publish_time":1506330791905,"_cnpm_publish_time":1506330791905,"_hasShrinkwrap":false},"2.1.1":{"name":"split2","version":"2.1.1","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"standard && tap -b test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"callback-stream":"^1.1.0","fastbench":"^1.0.0","pre-commit":"^1.1.2","standard":"^8.6.0","tap":"^8.0.1"},"dependencies":{"through2":"^2.0.2"},"gitHead":"5a9787350f4685fc2d9af9eedddf487d4a6710d6","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@2.1.1","_shasum":"7a1f551e176a90ecd3345f7246a0cfe175ef4fd0","_from":".","_npmVersion":"3.10.9","_nodeVersion":"6.9.2","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"7a1f551e176a90ecd3345f7246a0cfe175ef4fd0","size":3929,"noattachment":false,"key":"/split2/-/split2-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-2.1.1.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/split2-2.1.1.tgz_1483345766693_0.20675289118662477"},"directories":{},"publish_time":1483345767243,"_cnpm_publish_time":1483345767243,"_hasShrinkwrap":false},"2.1.0":{"name":"split2","version":"2.1.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"standard && tap -b test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"callback-stream":"^1.1.0","fastbench":"^1.0.0","pre-commit":"^1.1.2","standard":"^7.0.0","tap":"^5.0.0"},"dependencies":{"through2":"~2.0.0"},"gitHead":"a963dadb05c7cf0cbe77e4e1eb815c672100bb65","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@2.1.0","_shasum":"7382c148cb622c4b28af7c727f9673730b73f474","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"7382c148cb622c4b28af7c727f9673730b73f474","size":3919,"noattachment":false,"key":"/split2/-/split2-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-2.1.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/split2-2.1.0.tgz_1463677902226_0.7877608684357256"},"directories":{},"publish_time":1463677904551,"_cnpm_publish_time":1463677904551,"_hasShrinkwrap":false},"2.0.1":{"name":"split2","version":"2.0.1","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"standard && tap -b test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"callback-stream":"^1.1.0","fastbench":"^1.0.0","pre-commit":"^1.1.2","standard":"^5.4.1","tap":"^5.0.0"},"dependencies":{"through2":"~2.0.0"},"gitHead":"489fd6c272a8f03970c28df03c303df8a9356b9d","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@2.0.1","_shasum":"a01f8e46b7d56145193af845249bfe7c070c5260","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"a01f8e46b7d56145193af845249bfe7c070c5260","size":3794,"noattachment":false,"key":"/split2/-/split2-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-2.0.1.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/split2-2.0.1.tgz_1454755495672_0.8937675757333636"},"directories":{},"publish_time":1454755496804,"_cnpm_publish_time":1454755496804,"_hasShrinkwrap":false},"2.0.0":{"name":"split2","version":"2.0.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"standard && tap -b test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"callback-stream":"^1.1.0","fastbench":"^1.0.0","pre-commit":"^1.1.2","standard":"^5.4.1","tap":"^5.0.0"},"dependencies":{"through2":"~2.0.0"},"gitHead":"11eab80618c394e36bead733a6185e1576fe62e6","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@2.0.0","_shasum":"bab4446f94025f19ea6e4b9dba8e16e8053468fa","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"bab4446f94025f19ea6e4b9dba8e16e8053468fa","size":3719,"noattachment":false,"key":"/split2/-/split2-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-2.0.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"publish_time":1453298921425,"_cnpm_publish_time":1453298921425,"_hasShrinkwrap":false},"1.1.1":{"name":"split2","version":"1.1.1","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"tap test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"tap":"~0.4.12","pre-commit":"0.0.9","callback-stream":"~1.0.2"},"dependencies":{"through2":"~2.0.0"},"gitHead":"1a65c8cf7b70bfc6e6e234091380aaebf97e7c50","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@1.1.1","_shasum":"162d9b18865f02ab2f2ad9585522db9b54c481f9","_from":".","_npmVersion":"3.4.1","_nodeVersion":"4.2.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"162d9b18865f02ab2f2ad9585522db9b54c481f9","size":3293,"noattachment":false,"key":"/split2/-/split2-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-1.1.1.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"publish_time":1452187383269,"_cnpm_publish_time":1452187383269,"_hasShrinkwrap":false},"1.1.0":{"name":"split2","version":"1.1.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"tap test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"tap":"~0.4.12","pre-commit":"0.0.9","callback-stream":"~1.0.2"},"dependencies":{"through2":"~2.0.0"},"gitHead":"bd01e1b0ce1f33409cd57d9805aaf09c8386f5af","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@1.1.0","_shasum":"bd970913fc41814430bff5b9d72e7978d140a98b","_from":".","_npmVersion":"3.4.1","_nodeVersion":"4.2.0","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"bd970913fc41814430bff5b9d72e7978d140a98b","size":3280,"noattachment":false,"key":"/split2/-/split2-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-1.1.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"publish_time":1450945487344,"_cnpm_publish_time":1450945487344,"_hasShrinkwrap":false},"1.0.0":{"name":"split2","version":"1.0.0","description":"split a Text Stream into a Line Stream, using Stream 3","main":"index.js","scripts":{"test":"tap test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"git+https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"tap":"~0.4.12","pre-commit":"0.0.9","callback-stream":"~1.0.2"},"dependencies":{"through2":"~2.0.0"},"gitHead":"f0755305c3c47faac7b5b059543a821894944c23","homepage":"https://github.com/mcollina/split2#readme","_id":"split2@1.0.0","_shasum":"52e2e221d88c75f9a73f90556e263ff96772b314","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"dist":{"shasum":"52e2e221d88c75f9a73f90556e263ff96772b314","size":3038,"noattachment":false,"key":"/split2/-/split2-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-1.0.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"publish_time":1434212050562,"_cnpm_publish_time":1434212050562,"_hasShrinkwrap":false},"0.2.1":{"name":"split2","version":"0.2.1","description":"split a Text Stream into a Line Stream, using Stream 2","main":"index.js","scripts":{"test":"tap test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"tap":"~0.4.12","pre-commit":"0.0.9","callback-stream":"~1.0.2"},"dependencies":{"through2":"~0.6.1"},"homepage":"https://github.com/mcollina/split2","_id":"split2@0.2.1","_shasum":"02ddac9adc03ec0bb78c1282ec079ca6e85ae900","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"dist":{"shasum":"02ddac9adc03ec0bb78c1282ec079ca6e85ae900","size":20552,"noattachment":false,"key":"/split2/-/split2-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-0.2.1.tgz"},"directories":{},"publish_time":1407835529291,"_cnpm_publish_time":1407835529291,"_hasShrinkwrap":false},"0.2.0":{"name":"split2","version":"0.2.0","description":"split a Text Stream into a Line Stream, using Stream 2","main":"index.js","scripts":{"test":"tap test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"tap":"~0.4.12","pre-commit":"0.0.9","callback-stream":"~1.0.2"},"dependencies":{"through2":"~0.6.0"},"homepage":"https://github.com/mcollina/split2","_id":"split2@0.2.0","_shasum":"f70f4f2ccfeb257e93568c62c9cbb21420ae7e24","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"dist":{"shasum":"f70f4f2ccfeb257e93568c62c9cbb21420ae7e24","size":20315,"noattachment":false,"key":"/split2/-/split2-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-0.2.0.tgz"},"directories":{},"publish_time":1407590971437,"_cnpm_publish_time":1407590971437,"_hasShrinkwrap":false},"0.1.2":{"name":"split2","version":"0.1.2","description":"split a Text Stream into a Line Stream, using Stream 2","main":"index.js","scripts":{"test":"tap test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"tap":"~0.4.8","pre-commit":"0.0.4","callback-stream":"~1.0.2"},"dependencies":{"through2":"~0.4.1"},"homepage":"https://github.com/mcollina/split2","_id":"split2@0.1.2","_shasum":"a4d560b91f04168f21cd9bdd569b6f78d5164593","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"dist":{"shasum":"a4d560b91f04168f21cd9bdd569b6f78d5164593","size":20320,"noattachment":false,"key":"/split2/-/split2-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-0.1.2.tgz"},"directories":{},"publish_time":1403013837220,"_cnpm_publish_time":1403013837220,"_hasShrinkwrap":false},"0.1.1":{"name":"split2","version":"0.1.1","description":"split a Text Stream into a Line Stream, using Stream 2","main":"index.js","scripts":{"test":"tap test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"tap":"~0.4.8","pre-commit":"0.0.4","callback-stream":"~1.0.2"},"dependencies":{"through2":"~0.4.1"},"homepage":"https://github.com/mcollina/split2","_id":"split2@0.1.1","dist":{"shasum":"c02398814057a724fddd0ed44257195a72d2b86a","size":20094,"noattachment":false,"key":"/split2/-/split2-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"publish_time":1394729224844,"_cnpm_publish_time":1394729224844,"_hasShrinkwrap":false},"0.1.0":{"name":"split2","version":"0.1.0","description":"split a Text Stream into a Line Stream, using Stream 2","main":"index.js","scripts":{"test":"tap test.js"},"pre-commit":["test"],"website":"https://github.com/mcollina/split2","repository":{"type":"git","url":"https://github.com/mcollina/split2.git"},"bugs":{"url":"http://github.com/mcollina/split2/issues"},"author":{"name":"Matteo Collina","email":"hello@matteocollina.com"},"license":"ISC","devDependencies":{"tap":"~0.4.8","pre-commit":"0.0.4","callback-stream":"~1.0.2"},"dependencies":{"through2":"~0.4.1"},"homepage":"https://github.com/mcollina/split2","_id":"split2@0.1.0","dist":{"shasum":"83db2ac957b3b486e52922b3758974f94aa7c888","size":19797,"noattachment":false,"key":"/split2/-/split2-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/split2/download/split2-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"matteo.collina","email":"hello@matteocollina.com"},"maintainers":[{"name":"matteo.collina","email":""}],"directories":{},"publish_time":1394626679330,"_cnpm_publish_time":1394626679330,"_hasShrinkwrap":false}},"readme":"# Split2(matcher, mapper, options)\n\n![ci](https://github.com/mcollina/split2/workflows/ci/badge.svg)\n\nBreak up a stream and reassemble it so that each line is a chunk.\n`split2` is inspired by [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) module,\nand it is totally API compatible with it.\nHowever, it is based on Node.js core [`Transform`](https://nodejs.org/api/stream.html#stream_new_stream_transform_options).\n\n`matcher` may be a `String`, or a `RegExp`. Example, read every line in a file ...\n\n``` js\n  fs.createReadStream(file)\n    .pipe(split2())\n    .on('data', function (line) {\n      //each chunk now is a separate line!\n    })\n\n```\n\n`split` takes the same arguments as `string.split` except it defaults to '/\\r?\\n/', and the optional `limit` paremeter is ignored.\n[String#split](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/split)\n\n`split` takes an optional options object on it's third argument, which\nis directly passed as a\n[Transform](https://nodejs.org/api/stream.html#stream_new_stream_transform_options)\noption.\n\nAdditionally, the `.maxLength` and `.skipOverflow` options are implemented, which set limits on the internal\nbuffer size and the stream's behavior when the limit is exceeded. There is no limit unless `maxLength` is set. When\nthe internal buffer size exceeds `maxLength`, the stream emits an error by default. You may also set `skipOverflow` to\ntrue to suppress the error and instead skip past any lines that cause the internal buffer to exceed `maxLength`.\n\nCalling `.destroy` will make the stream emit `close`. Use this to perform cleanup logic\n\n``` js\nvar splitFile = function(filename) {\n  var file = fs.createReadStream(filename)\n\n  return file\n    .pipe(split2())\n    .on('close', function() {\n      // destroy the file stream in case the split stream was destroyed\n      file.destroy()\n    })\n}\n\nvar stream = splitFile('my-file.txt')\n\nstream.destroy() // will destroy the input file stream\n```\n\n# NDJ - Newline Delimited Json\n\n`split2` accepts a function which transforms each line.\n\n``` js\nfs.createReadStream(file)\n  .pipe(split2(JSON.parse))\n  .on('data', function (obj) {\n    //each chunk now is a js object\n  })\n  .on(\"error\", function(error) {\n    //handling parsing errors\n  })\n```\n\nHowever, in [@dominictarr](https://github.com/dominictarr) [`split`](https://github.com/dominictarr/split) the mapper\nis wrapped in a try-catch, while here it is not: if your parsing logic can throw, wrap it yourself. Otherwise, you can also use the stream error handling when mapper function throw.\n\n# License\n\nCopyright (c) 2014-2021, Matteo Collina <hello@matteocollina.com>\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR\nIN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/mcollina/split2#readme","bugs":{"url":"http://github.com/mcollina/split2/issues"},"license":"ISC"}