{"name":"@sovpro/delimited-stream","version":"1.0.2","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":"5790ce6f0d27d59e82fd238c72b6c9d6d821402b","bugs":{"url":"https://github.com/sovpro/delimited-stream/issues"},"homepage":"https://github.com/sovpro/delimited-stream#readme","_id":"@sovpro/delimited-stream@1.0.2","_nodeVersion":"8.17.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-1xxD3V5HmqVJtImXQOeNLyREGz8wUKNWjRT+584RLQbcm9b7Qj8m6RR/iNk4NsM8jfRap1zZqbWLbcyrO+LiwQ==","shasum":"f341fe5ce45cdb8cc5bdcdc1092f4c19332b7180","tarball":"http://registry-npm.ywwl.com/@sovpro/delimited-stream/download/@sovpro/delimited-stream-1.0.2.tgz","fileCount":4,"unpackedSize":6373,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeB78gCRA9TVsSAnZWagAASOwQAI23fMdZ7prCRUGyPe46\no7EJa1iaNiNIQzcInYKSHsI+tCjTAuYSsfaeqtJr8VXAyEdKu4burDrcZ11Q\nj9ZHZ00I12g6il7ouudkCOoYl+cRje/KJ6GUNde/GANRp4EdIE5WAL5stcS0\nDCCtpbvUinud+o6SUYEW9nyLgtxEYo5PKxFcFk3Wadyz5zI9nJplQNT5mPf2\nwjufEIPvXIUy79W71DKYDS94ZGJXKJ+Bi3JOdU2HJuATk6mwcz0OsLQ9rOq6\nsF4ooIeDPrwdkQnUrCVKT31GK0yGWh4rrOYhU3l5wW4edzp66UcmxQACY0jb\nvvK8bIX7OOuV2GZfFFZBvS8pPIpYLIEyKQSFLi4xfSXJYb/pgLAlUj7sDVn3\nhjM3x/mI19ma9PXP6UIQT8q3DjxNfoqoZBl2eRq+fNjbjxognQgKiA1JS7Td\nfTYK2yF83rjKXl1tNP3syNR93HTjrJvCsg2imgKdhYgtvWLjB9JWxqthG8/o\nDqQZUo8wafqEH0I9mlJrStQgg/mGX09FKlyrcomqPuFtDw0uU5cpvlERudje\n35fMSC14K41Vw1vlGMAxgEuQ48oeKe7yC3GUpR0e7HCJgahRc00l5Lg8ot0k\nnJ1tj5hHIImkfzeVseGhnIVkRxoIatMYWxkyg9Z3gH741PtNM9fJgFQ9noTJ\njtdH\r\n=E8Tr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzob+vKZfrZPip0LyW4lplpMn/V15s0HUKNLxy6grHSwIhAMf34QBbkOfjNt4OsAQtecQuuZnuvD4c3R8bZj2pGo6e"}],"size":2411,"noattachment":false,"key":"/@sovpro/delimited-stream/-/@sovpro/delimited-stream-1.0.2.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.2_1577565984241_0.6300345807394614"},"_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":1577565984383,"_cnpm_publish_time":1577565984383,"dist-tags":{"latest":"1.1.0"}}