{"_id":"protocol-buffers-stream","_rev":"15-5876d32e69414906b2c9fc266c35093b","name":"protocol-buffers-stream","description":"Streaming protocol buffers for Node.js","dist-tags":{"latest":"1.3.1"},"versions":{"0.0.0":{"name":"protocol-buffers-stream","version":"0.0.0","description":"Streaming protocol buffers for Node.js","main":"index.js","directories":{"test":"test"},"dependencies":{"debug":"^1.0.4","protocol-buffers":"^2.3.0","varint":"^3.0.0"},"devDependencies":{"tape":"^2.14.0","through2":"^0.5.1"},"scripts":{"test":"tape test"},"repository":{"type":"git","url":"https://github.com/mafintosh/protocol-buffers-stream"},"keywords":["protobuf","protocol","buffers","stream","streaming"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/protocol-buffers-stream/issues"},"homepage":"https://github.com/mafintosh/protocol-buffers-stream","gitHead":"1e7e616c6dd789519c05787fab54a23bba42e098","_id":"protocol-buffers-stream@0.0.0","_shasum":"c6fa93416cad103eb26ed9d4045755caf9f8eae1","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"c6fa93416cad103eb26ed9d4045755caf9f8eae1","tarball":"https://registry.npmjs.org/protocol-buffers-stream/-/protocol-buffers-stream-0.0.0.tgz","integrity":"sha512-RU+EYTra5Yn7ma354U7Z4Nmr1lwQWGtzVwv1Q00Q05ye0tplSSoHVbrvYbhRwJlu6tXEcQwPrcmxUBmWJaDpXg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOA1d9hvg+pTiXR5q0YtZLCALOC7/mCYzA0TeMcZSrDAIhAKOZY1dSA9dHtloOyXI1VzR3FF0Bs5UJH1NcVcIuMMDi"}]}},"1.0.0":{"name":"protocol-buffers-stream","version":"1.0.0","description":"Streaming protocol buffers for Node.js","main":"index.js","directories":{"test":"test"},"dependencies":{"debug":"^1.0.4","protocol-buffers":"^2.3.0","varint":"^3.0.0"},"devDependencies":{"tape":"^2.14.0","through2":"^0.5.1"},"scripts":{"test":"tape test"},"repository":{"type":"git","url":"https://github.com/mafintosh/protocol-buffers-stream"},"keywords":["protobuf","protocol","buffers","stream","streaming"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/protocol-buffers-stream/issues"},"homepage":"https://github.com/mafintosh/protocol-buffers-stream","gitHead":"87d75c0baa70bf2a96a17866cb31fd5291311631","_id":"protocol-buffers-stream@1.0.0","_shasum":"a3c8667fafc829b94ca6d830894d83b99b9ce70f","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"a3c8667fafc829b94ca6d830894d83b99b9ce70f","tarball":"https://registry.npmjs.org/protocol-buffers-stream/-/protocol-buffers-stream-1.0.0.tgz","integrity":"sha512-OqkJLfgTF7AOK7v3AcNh99dcAxRa3As43W5QUresIjKk7qLQG/U1ofSFd3Fpp5rUzTwxVjWVgfC5LZBEKj3YPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIASoE2aY3ajzBW5ga19MLSY/10ZlNfnUEZvgvgdrupNiAiBqJWALqGfeY9NYUzM9669TmPxWy3JcbimT/r775rIBlA=="}]}},"1.1.0":{"name":"protocol-buffers-stream","version":"1.1.0","description":"Streaming protocol buffers for Node.js","main":"index.js","directories":{"test":"test"},"dependencies":{"debug":"^1.0.4","protocol-buffers":"^2.3.0","varint":"^3.0.0"},"devDependencies":{"tape":"^2.14.0","through2":"^0.5.1"},"scripts":{"test":"tape test"},"repository":{"type":"git","url":"https://github.com/mafintosh/protocol-buffers-stream"},"keywords":["protobuf","protocol","buffers","stream","streaming"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/protocol-buffers-stream/issues"},"homepage":"https://github.com/mafintosh/protocol-buffers-stream","gitHead":"18a8c4430d92d00a72fcbdd7b838e1c80ed5aeb6","_id":"protocol-buffers-stream@1.1.0","_shasum":"7d795dac97c13e3eb5a2609d8c8bb1a1664b1349","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"7d795dac97c13e3eb5a2609d8c8bb1a1664b1349","tarball":"https://registry.npmjs.org/protocol-buffers-stream/-/protocol-buffers-stream-1.1.0.tgz","integrity":"sha512-J3s8RPijj2ng26HkXenUh1WPI+4rBdXthv60vEcR5Yet7C+z24mBuDy6uj/dGdJRJEQSuc7NE+KKwD4KUGSNcg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAH+Dph6MVfwJAeBUjBG2n4vaZHFdB0re9Nbt78jycPxAiEAjtG5H+1dNgNiCuzZD7Qqditvgz7jsuAhuZUPJY6EmAE="}]}},"1.1.1":{"name":"protocol-buffers-stream","version":"1.1.1","description":"Streaming protocol buffers for Node.js","main":"index.js","directories":{"test":"test"},"dependencies":{"debug":"^1.0.4","protocol-buffers":"^2.3.0","varint":"^3.0.0"},"devDependencies":{"tape":"^2.14.0","through2":"^0.5.1"},"scripts":{"test":"tape test"},"repository":{"type":"git","url":"https://github.com/mafintosh/protocol-buffers-stream"},"keywords":["protobuf","protocol","buffers","stream","streaming"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/protocol-buffers-stream/issues"},"homepage":"https://github.com/mafintosh/protocol-buffers-stream","gitHead":"2f4b0ccca4efeefa1197e9b1aa520d64838994e8","_id":"protocol-buffers-stream@1.1.1","_shasum":"aca5ce2086687539a3acddafddb2b3c0deae33e8","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"aca5ce2086687539a3acddafddb2b3c0deae33e8","tarball":"https://registry.npmjs.org/protocol-buffers-stream/-/protocol-buffers-stream-1.1.1.tgz","integrity":"sha512-5bcqftWb7sO56rgjTcvPCjfwD/EsY7ciPRNhY+DbSiWBECijtEu23Nbo5gn9AzN5JjcDOKox8QYzRZE6cuV6IQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBcaCudNqekiRYe/xB17ByeQdGD5Z+wU5vRvkP5iBSPgAiALDEu/1d2FKusBqkcMCZbPv0BeMeUsqt8YcntL9PiATQ=="}]}},"1.2.0":{"name":"protocol-buffers-stream","version":"1.2.0","description":"Streaming protocol buffers for Node.js","main":"index.js","directories":{"test":"test"},"dependencies":{"debug":"^1.0.4","protocol-buffers":"^2.3.0","varint":"^3.0.0"},"devDependencies":{"tape":"^2.14.0","through2":"^0.5.1"},"scripts":{"test":"tape test"},"repository":{"type":"git","url":"https://github.com/mafintosh/protocol-buffers-stream"},"keywords":["protobuf","protocol","buffers","stream","streaming"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/protocol-buffers-stream/issues"},"homepage":"https://github.com/mafintosh/protocol-buffers-stream","gitHead":"e0edfb49316b9645908f16bb24f03482b38f4ce5","_id":"protocol-buffers-stream@1.2.0","_shasum":"20c15853c4134e18c7314f362922aaea36c2af87","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"20c15853c4134e18c7314f362922aaea36c2af87","tarball":"https://registry.npmjs.org/protocol-buffers-stream/-/protocol-buffers-stream-1.2.0.tgz","integrity":"sha512-rVA8GR/yS9Zkja39F8ORvlBm6+jCRRWY8InDhHdh5fFqEhqpZ8XsSVjxU1rrMMMGYk7OSVFK6IURcg1c3nvr7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBnF/eSoABtoItHVb994uPF0QX+F/u6GgUhMGZez/Y9AIhAOng2RT8ZxsTh4iksKrWIu272Jga8zs86K2ciA2cfGfE"}]}},"1.3.0":{"name":"protocol-buffers-stream","version":"1.3.0","description":"Streaming protocol buffers for Node.js","main":"index.js","directories":{"test":"test"},"dependencies":{"debug":"^1.0.4","protocol-buffers":"^2.3.0","readable-stream":"^2.0.2","varint":"^3.0.0"},"devDependencies":{"standard":"^5.3.1","tape":"^2.14.0","through2":"^0.5.1"},"scripts":{"test":"standard && tape test"},"repository":{"type":"git","url":"https://github.com/mafintosh/protocol-buffers-stream"},"keywords":["protobuf","protocol","buffers","stream","streaming"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/protocol-buffers-stream/issues"},"homepage":"https://github.com/mafintosh/protocol-buffers-stream","gitHead":"beab6b1214521dc1eb0fdc0b44848607e5c43ca5","_id":"protocol-buffers-stream@1.3.0","_shasum":"8126394dfa4787d2272b511b3916e838aa295407","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"8126394dfa4787d2272b511b3916e838aa295407","tarball":"https://registry.npmjs.org/protocol-buffers-stream/-/protocol-buffers-stream-1.3.0.tgz","integrity":"sha512-Y+vLUbf72cMWW7VyAK6h1WSPlfoG+Uj2wB2l6u3UnR5wY+AvLBztxZ6cLR0LzFxcLPDVW3I2tgNaijIefA/Qgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmBhEnsmCB/Q93bd6QmGS18PkSWr088+PJbJsvEl7bfAiEAt5ekkqp0JGY+f2mekCxLHQtUs+/ZAoB9uSbkJwvMEhE="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}]},"1.3.1":{"name":"protocol-buffers-stream","version":"1.3.1","description":"Streaming protocol buffers for Node.js","main":"index.js","directories":{"test":"test"},"dependencies":{"debug":"^2.2.0","protocol-buffers":"^2.3.0","readable-stream":"^2.0.2","varint":"^3.0.0"},"devDependencies":{"standard":"^5.3.1","tape":"^2.14.0","through2":"^0.5.1"},"scripts":{"test":"standard && tape test"},"repository":{"type":"git","url":"https://github.com/mafintosh/protocol-buffers-stream"},"keywords":["protobuf","protocol","buffers","stream","streaming"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/protocol-buffers-stream/issues"},"homepage":"https://github.com/mafintosh/protocol-buffers-stream","gitHead":"b93fc4e6086e566f1b2be461fef4fbcfd648b515","_id":"protocol-buffers-stream@1.3.1","_shasum":"edbfd1bda7aa17644e7d0d6ab3ca3c322273540f","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"edbfd1bda7aa17644e7d0d6ab3ca3c322273540f","tarball":"https://registry.npmjs.org/protocol-buffers-stream/-/protocol-buffers-stream-1.3.1.tgz","integrity":"sha512-1VOf4rSD68nlvQCVOJWs2VmU9A3erQ8HlbfIcibYaAccgl4No0K1krpz+DuAWi0zfL9cIQ3ZwPilcFVlXLM0cg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6mxwwhXhtbbrIE0YdFzmkz/N6umUsmne2cwiZEszv9wIgfQ5Zut7/knY66yAaf9cVGhEQk5y62r1kG/eTHpkvOOw="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}]}},"readme":"# protocol-buffers-stream\n\nStreaming protocol buffers for Node.js\n\n```\nnpm install protocol-buffers-stream\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/protocol-buffers-stream.svg?style=flat)](http://travis-ci.org/mafintosh/protocol-buffers-stream)\n\n## Usage\n\nAssuming you have the following schema\n\n```\nmessage Test {\n  required string hello = 1;\n}\n```\n\nRun the following example\n\n``` js\nvar protobufs = require('protocol-buffers-stream')\nvar fs = require('fs')\n\nvar schema = fs.readFileSync('schema.proto')\nvar createStream = protobufs(schema)\n\nvar stream = createStream()\n\n// send a test message\n// if your schema message was named example this method would be called example\nstream.test({\n  hello: 'world'\n})\n\n// receive a test message\nstream.on('test', function(m) {\n  console.log(m)\n})\n\n// just pipe to ourselves for testing\nstream.pipe(stream)\n```\n\n## Encoding\n\nEach buffer is sent using the following encoding\n\n```\n----------------------------------------------\n| frame length | message id | message buffer |\n----------------------------------------------\n```\n\nThe first message sent is a handshake message that contains the message\nids of the following messages\n\nIf you know that your schema won't change you can pass `{handshake:false}` to `createStream`\nto disable handshaking\n\n## License\n\nMIT","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-24T20:58:07.444Z","created":"2014-08-05T18:39:16.355Z","0.0.0":"2014-08-05T18:39:16.355Z","1.0.0":"2014-08-05T18:46:01.716Z","1.1.0":"2014-08-05T19:08:04.349Z","1.1.1":"2014-08-05T19:23:44.923Z","1.2.0":"2014-08-09T06:44:43.269Z","1.3.0":"2015-10-18T14:54:39.863Z","1.3.1":"2016-01-23T18:31:09.361Z"},"homepage":"https://github.com/mafintosh/protocol-buffers-stream","keywords":["protobuf","protocol","buffers","stream","streaming"],"repository":{"type":"git","url":"https://github.com/mafintosh/protocol-buffers-stream"},"author":{"name":"Mathias Buus"},"bugs":{"url":"https://github.com/mafintosh/protocol-buffers-stream/issues"},"license":"MIT","readmeFilename":"README.md","users":{"daviddias":true}}