{"name":"@sovpro/delimited-stream","version":"1.0.4","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":"ad14a8b0e095cc3718208ebb2ac835a5e02b5981","bugs":{"url":"https://github.com/sovpro/delimited-stream/issues"},"homepage":"https://github.com/sovpro/delimited-stream#readme","_id":"@sovpro/delimited-stream@1.0.4","_nodeVersion":"10.16.3","_npmVersion":"6.13.4","dist":{"integrity":"sha512-fg5xs9sqmNKem3XtCSWc3GoThxckYa/7G29fOzuXhqTLu82Qn0sSNw4KpvuK+OzLJPiEvTH3KvxLXZLzoLWPWw==","shasum":"51f5734f7e1ba98b75dce7c472bcde8645d32976","tarball":"http://registry-npm.ywwl.com/@sovpro/delimited-stream/download/@sovpro/delimited-stream-1.0.4.tgz","fileCount":4,"unpackedSize":5907,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFjlQCRA9TVsSAnZWagAA3hYP/3RqVEn7Gkv/dbwDWO6r\nFwOUTdu6LXBBk00rSIes7f4wuR9pm8FCLuAGbYWDKxlL4I+or8JWrdBMB/A7\nq+9vu3jFL9fQMfh2SSzLpCSbpFNQJH8ahcDbWbCGiVv0yIQNMRHYs2SFflr6\nOoEy28OZD9yfFdLqIquVTMnCmEyLrO+aVy1Yvorwv13oNZN7Vt0Vk2YXrd3I\nidQgVFXHBUAKPjcBDHzUMB+c+NC2YRNZs1W/Vc8t4XgNqPH5YjDUK2hhXAZj\n1+FWgMCKP8/kWkjyEdD6Eb2wdwbjMC6GPaaUkSEDoH2XpMdQo4RSKryEF33p\nX2uOIKHe/H23cQlJKxnImYnHzKravjo+Z9guJhfj+sOgyxWS6DBZ1TAqFgXJ\n3TmGnXNvwqYDQGCMo8k1n1my0Iq3Ms53sgihxyFPx16b6YCSzsdQ3dEQBj+v\n6T6By9ZVB/PLv243Fupl7edEdrMY2Q3C/GLfvFRH1gjv9iadUAxZwXsC+fTN\n/QdvuAHelGe+P6j1Q9oC8UmK05e9JvZxjyvUHmNj/ZvhI2MruGNqEhfkzsLF\nMzDQYx8SH2YxGCW6R3+3aFkhM0S1slvmyeFeRQQjxmfYf0xfXpCalVW+g1jv\nkd2+pCt0LD2y6gbMB0pG/x0lYQgp9CZd3DJor4rHuG+6FCdBrQC+OEFYfAUK\nxhA+\r\n=sBwt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFoEIb/nuA8M+2iDauBx5iQ6wGRLzxSeyn+3UCOsUGbLAiEA32VwzF3WttLWrmVzdSvNJNT0jIuGkDjI0tCTlc31XtU="}],"size":2231,"noattachment":false,"key":"/@sovpro/delimited-stream/-/@sovpro/delimited-stream-1.0.4.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.4_1578514768571_0.11766109980452888"},"_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":1578514768662,"_cnpm_publish_time":1578514768662,"dist-tags":{"latest":"1.1.0"}}