Package Exports
- it-protobuf-stream
Readme
it-protobuf-stream
Read and write protobuf messages over a duplex stream
Table of contents
Install
$ npm i it-protobuf-streamBrowser <script> tag
Loading this module through a script tag will make it's exports available as ItProtobufStream in the global namespace.
<script src="https://unpkg.com/it-protobuf-stream/dist/index.min.js"></script>> npm install it-pb-streamUsage
import { pbStream } from 'it-protobuf-stream'
const stream = pbStream(duplex)
// read a message from the stream
await stream.read(def)
// write a message into the stream
await stream.write(buf, def)
//.. etcLicense
Licensed under either of
- Apache 2.0, (LICENSE-APACHE / http://www.apache.org/licenses/LICENSE-2.0)
- MIT (LICENSE-MIT / http://opensource.org/licenses/MIT)
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.