{"name":"@sovpro/delimited-stream","version":"1.0.5","description":"A Transform stream emitting buffered data at each delimiter instance","main":"delimited-stream.js","scripts":{"test":"istanbul cover test"},"repository":{"type":"git","url":"git+https://github.com/sovpro/delimited-stream.git"},"keywords":["stream","delimited","delimiter","transform"],"author":{"name":"sovpro","email":"its.so@outlook.com"},"license":"MIT","devDependencies":{"@sovpro/split-randomly":"^1.0.1","istanbul":"^0.4.5"},"gitHead":"5c0b689332cddf3ee2849765391702fd554b2a48","bugs":{"url":"https://github.com/sovpro/delimited-stream/issues"},"homepage":"https://github.com/sovpro/delimited-stream#readme","_id":"@sovpro/delimited-stream@1.0.5","_nodeVersion":"12.10.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-4hHPFVUi1Z5gqjSuu1k51lB/cIziBeibnc2A9Ue0HFxn1KreZFz7AitEtX7EAIOVS9kUA/hNn4bOusNLATCnpA==","shasum":"e29d3e2ea30b2d3ce585832f2ebb8576b6484351","tarball":"http://registry-npm.ywwl.com/@sovpro/delimited-stream/download/@sovpro/delimited-stream-1.0.5.tgz","fileCount":4,"unpackedSize":6053,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeGjEECRA9TVsSAnZWagAAPJoP/3zR8TkLQnKM5tAhYtq3\nIvTQ+PVYtXBFTH6RWLvQ7MMnocDz1zZoea2/h0XBA17ckP/ugJmHS5CwaTh0\nDQAtOXyqiv+KJghXnCHmKRHftBZId0tmfmCAbSHHvDPu8kbSvqBe8WWk0/uE\nczcdNESg+05Mvx/Q4XT4BE5fmiXFrIXNSZ79riv0bNexu5SoDi5ggBB1vopP\naeqSyREJ5FaBMDaypjx3FaYErW6+qBA26lHtT6idhuX7Sd1n0wFXUmrD14Ah\nJSpZRLpKAayDDYSCVTXg5kwhE6p0uoW+8GrJXxjd9ChHyd5U+dTDMc0/jGT4\nE3I4naBP05TDYP3m4aG75J1GfPcROZv1zMYR936ucbyCXZWgmuM4XVl/MZdE\nPYpQpvBDEZc3XhLjJLZH0vsKenRib62fTNYClABNND76xkc+MagW93kogYx/\nfik4+/CrFx8cd3po6UUaODEGGg5J5mtU2Xirt5aG8b/WOap08sTD60xBBz/5\nsjs3Gu8MwFw0brI/zU+E2f85YmQX28LlDbo7slZfLzmZ09tx2A0Uh3AXlvtV\nM3uNiE9cNoomvXily3Y0R42/ghhPE6OklrzGlD9mpcFpLpKrrKcfvPxvMyZU\nNpjS5fk1y4UBPiPcYqdH5r/oaWtebjSt0GqXUMkSk7z0USmlEBIKoiVHgbZj\nEXyg\r\n=CbIY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEdJ0QTbqs5nDRNpDfTFpMstKzimzRKbOaKaiEdYeEdIAiEAtizai/j4HuKWuNzTMVhZtspx8ldiOoMNdOwvqol+h7c="}],"size":2217,"noattachment":false,"key":"/@sovpro/delimited-stream/-/@sovpro/delimited-stream-1.0.5.tgz"},"maintainers":[{"name":"sovpro","email":"its.so@outlook.com"}],"_npmUser":{"name":"sovpro","email":"its.so@outlook.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/delimited-stream_1.0.5_1578774787884_0.9038459363438547"},"_hasShrinkwrap":false,"readme":"# Delimited Stream\n\nA Node.js Transform stream emitting buffered data at each delimiter instance.\n\n[![Build status for Node.js 8.x and newer](https://github.com/sovpro/delimited-stream/workflows/Node.js%208.x%20and%20newer%20/badge.svg?branch=master)](https://github.com/sovpro/delimited-stream/commits/master)\n\n## Constructor\n\nThe constructor requires a Buffer instance or string value representing the delimiter.\n\n```js\nconst stream = new DelimitedStream (delimiter)\n```\n\nBuffered data is emitted without the delimiter by default. To keep the delimiter, pass a [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy) value as the second parameter.\n\n```js\n// include delimiter in data\nconst stream = new DelimitedStream (delimiter, true)\n```\n\n## Example\n\nInstantiate a stream with a [newline](https://en.wikipedia.org/wiki/Newline) sequence as the delimiter.\n\n```js\nconst delimiter = Buffer.from (\"\\r\\n\")\nconst stream = new DelimitedStream (delimiter)\nstream.on ('data', (data) => {\n  const line = data.toString ('utf8')\n  // do stuff\n})\n```\n","publish_time":1578774787990,"_cnpm_publish_time":1578774787990,"dist-tags":{"latest":"1.1.0"}}