{"name":"@sovpro/delimited-stream","version":"1.0.1","description":"A Transform stream emitting buffered data at each delimiter instance","main":"delimited-stream.js","scripts":{"test":"istanbul cover test.js"},"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":{"istanbul":"^0.4.5"},"gitHead":"c9d759159e1f3f25697bc78144ab3456e40881d4","bugs":{"url":"https://github.com/sovpro/delimited-stream/issues"},"homepage":"https://github.com/sovpro/delimited-stream#readme","_id":"@sovpro/delimited-stream@1.0.1","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-OxYvVfVNWgyIJl86zMC53icvOoc9usvSl+RdYxKq82NmCsE+lSJeD8ZWwWjpWursCue3+vQbBxABHidN2OhkJA==","shasum":"28573effe9f8b2fa329453e0968ce6ad4063eeb6","tarball":"http://registry-npm.ywwl.com/@sovpro/delimited-stream/download/@sovpro/delimited-stream-1.0.1.tgz","fileCount":4,"unpackedSize":6168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd+IYGCRA9TVsSAnZWagAAijcP/3wBaEnTNbmsKH5cN5zf\nMj9XZj3oHdo4mmHzSyDviTTWx12onu3ZzYs+uTxKw+4x+yMZ752aMlexiFX1\nYdTpr4CuDpXsNQ+zGTNj7Ui/ZwDDEnlvKWhrhyD8ypkePMkMQ9pGbGKMLbv8\n+nLW5L0TApjJMfS5lZcobEWePBrbv6koNoa20X9uKyJ7Ied6kIQYCsmd8ZUs\ntyylVJFuuvVSJLSLpYbY+qklEmepaRfWGeosfalNDFF3FOqOUAV+V/1Nk8Gq\nX1cBVqjmep3fVrEB9MErvmgrM5IQxPamqLdnwypNEwGMWvhgNBolzFIpyF1/\n4DVacDzoKuRjtBuM2PbIeLtBJBoPQc+dSqpMdMh28mfXVB2wUbZoFxWXNjwm\nHZWtbT3epLVSfTeKmytQOxg6PKOAY+I+9kRpnFLrJjZU0Ka6s356P3F+OwkH\nmgL/0aQnk6WLpiYiaXwTAkM4txgrwmA/gHyqkI4oUY2dligbvsBdVyBgIcap\nOmTH5iC+qNhY2KyzK4nmgqA7WIKq8qDflo4y3z9RIuspVU606z34aIyQ2h/j\nO4MxyiFgCfEPeCEmWZI0sdPpLmXyaOqqwGFYj1wxjmxnHxcuAXN/31oL2h3q\nftZwsLkQ1yGUlts38zmE9jtCDE38DCPFi81S460+4UcFRtU/gHX0TA85vyOI\nr5xk\r\n=iRZS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCa2P2bd9xLFBaHwh8YfxQpv+LTr+FBxT1S5g9u6g8kRQIhAMTic3fCjx3/CWcGRFHGmQ05wRmP7qrLx1R9X7AhK4ZN"}],"size":2327,"noattachment":false,"key":"/@sovpro/delimited-stream/-/@sovpro/delimited-stream-1.0.1.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.1_1576568325882_0.97448431331682"},"_hasShrinkwrap":false,"deprecated":"Update to 1.0.5 to fix incomplete data emission bug","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":1576568326054,"_cnpm_publish_time":1576568326054,"dist-tags":{"latest":"1.1.0"}}