{"name":"@sovpro/delimited-stream","version":"1.0.3","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":{"istanbul":"^0.4.5"},"gitHead":"2ef7b11848374a8d6c0b44729abdc98a7cd3cf7b","bugs":{"url":"https://github.com/sovpro/delimited-stream/issues"},"homepage":"https://github.com/sovpro/delimited-stream#readme","_id":"@sovpro/delimited-stream@1.0.3","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-UeBueRrY0pK5eY+RzaYTqZY+yU2WOdEftQ3sJpmJxScQDyf3FyfekRfwAJ+8j1w2LbXQF70zgZVdggpwf3tDtg==","shasum":"8b3659289e83559e79ea8489472bab4f5c284322","tarball":"http://registry-npm.ywwl.com/@sovpro/delimited-stream/download/@sovpro/delimited-stream-1.0.3.tgz","fileCount":4,"unpackedSize":6385,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeCh30CRA9TVsSAnZWagAAyEsP/AlvCJU3GFMTqg3pyHcw\nFCLmuqVYw0hqQ7UN5bVMLVhHKC0D2gHUfy0YlM80iXf1sVuX/JPSy+IAei3i\nLyxhNm1HqbAZdD1bf2pXfX6Q47LM8zewCJjkoB2jaJYQVy3GNePOngRwTKtu\nFi1RgqPbNLy9BTMb0quq+3X/sgvm383X6esgSIQwN4jIi2kuZJ3Vt63VNClZ\nNYz3hCseSpGyzy77FebRPXcT3cLeeDrNPwVzifwd69izDYFthDyxLXQ7WWmC\ngAu7DE6Mov82ctY+eiNqF/VgfUfGlyzH1+27znyTxbkQTFpLY89CSo615FO+\ntpr95TOSK9GbdS15QttrKIzQZlX7zCRdyk2NzX86rhn62Wv1Tnxh2XbMEtt1\nuqHvf05HpPbmRJ9AC+gDIccsbcLyrW3Yf+fqxtPQDtfB17VOQDkSQRnbsQ1q\nGldpaYdQR5AsyfYRLHryPEMYdwp7a6B/18Psy0oRP2/ZGwJXKWrsDvYcmLRy\nVQDGGwnCyghQwQADWHvQQKDCToGlfHJEvlDhP0WImZIZuQInBCy8569H/v1/\nIH0QmKxg+qyZIO/VbHZ7uTFdEgAxHN+PowAmQaSYygIp+pTIowpdvJ9z28lg\nc+Sd4cUW5BugwfOdR4OU/J6UiogLQ9uU1eWLyGh7tN8wJfPeLMR1QwmTglZ1\nqKa1\r\n=gKuB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/2LjNj4fkha2YVaTTrcD8ZIodEpo0Pp9B1Wdrtc2riAIgboKB5Zd3T7NZ9EcCo+ZLPeYhRMo17KEPM6Ax3ftoqgA="}],"size":2414,"noattachment":false,"key":"/@sovpro/delimited-stream/-/@sovpro/delimited-stream-1.0.3.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.3_1577721331819_0.1600738934681487"},"_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":1577721331947,"_cnpm_publish_time":1577721331947,"dist-tags":{"latest":"1.1.0"}}