A convenience-wrapper around protocol-buffers and lp-messages functions
$ npm i it-pb-stream
Loading this module through a script tag will make it's exports available as ItPbStream
in the global namespace.
<script src="https://unpkg.com/it-pb-stream/dist/index.min.js"></script>
> npm install it-pb-stream
import { pbStream } from 'it-pb-stream'
const stream = pbStream(duplex)
stream.writeLP(buf)
stream.writePB(buf, def)
//.. etc
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)
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.