{"name":"@sovpro/delimited-stream","version":"1.0.0","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"},"bugs":{"url":"https://github.com/sovpro/delimited-stream/issues"},"homepage":"https://github.com/sovpro/delimited-stream#readme","_id":"@sovpro/delimited-stream@1.0.0","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-N0y7uEyRF7mM+mWR88CnWZgMHUmxj5XKrIgrxkeEUnRxCjvJ+oZRl3cOMmOTr6zPsBBQx7XXtm+hMPRFggZC8Q==","shasum":"beda2b9954600b1cb0f2817d456dcfcf9df5a2e9","tarball":"http://registry-npm.ywwl.com/@sovpro/delimited-stream/download/@sovpro/delimited-stream-1.0.0.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+HZPCRA9TVsSAnZWagAAKQQP/3uxOIPncmwCFida9PHl\nbJK6cmhrRym7RSPkGTiGXn5i9iLCFXA8MlZGC3dkLXwvb+OXv0p84P6LcxQj\ncX23puzWeOP4qf2VvhSiPyiBEOOJLss076QOhiR/k2G2XFhLmhjblbCWrr4x\nAT8jgSsCTMx1uiV1U7b1HxOijqwp73mapScQiPv7Vaf3mP7/irfksCf2MFoX\nlFOC+oV/e3HaayFzs6gFU/vdL0qWRvyDOSoMGWjkbp9LLfQcQWdRZQ8Hda3F\nCv/eDVlnW/4q8EzUAfMqHgC3ECg4ns6JJWZeCp4otXxbig5y/kRc225ION01\n2zUZ4q3PrlhG7/KcsD4pCzWHkALCWbLqwT+4vjfwxGM+h2x5/0B7MVd9O3k4\nghBtoL/6cDcNDj5kx7uDe/QSDd95kLDUE/0GCqvcskibbDyixeQJFJe+Nemk\nZ883GpeYjDKxugJ5qQtSlENFr+IAGDwuhwd7oEBbAXwoxwJGv9LkwjHnoIpG\nT+E/+YNq2jqmuRkIAGZNeW6eV1VvBok2lcTlGZMQm8l79JztlD9V3u+C5uxX\nNjzzWCfA7VycD05CQ+8+oa5cNa9xcAN+btwzQA3QzJLeEdT2iPdQ62hV81qP\n/CMHwVDhajzzlmsgcMp8M42Xzg4ly1In+oPl/zY92LMk0+lc280u/C4wuGSG\nFjKa\r\n=tE3G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDjwGDFL8tI4jTr/RqjnNELiaRh6ZAPabNxJ+/0uFBwwIhALhra71cKqsrirHofFeOASFcn61V5JKPcfTsrhk1Ltbp"}],"size":2327,"noattachment":false,"key":"/@sovpro/delimited-stream/-/@sovpro/delimited-stream-1.0.0.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.0_1576564302639_0.703230086923331"},"_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":1576564302913,"_cnpm_publish_time":1576564302913,"dist-tags":{"latest":"1.1.0"}}