it-pb-stream - v4.0.2

it-pb-stream

codecov CI

A convenience-wrapper around protocol-buffers and lp-messages functions

Table of contents

Install

$ npm i it-pb-stream

Browser <script> tag

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

Usage

import { pbStream } from 'it-pb-stream'

const stream = pbStream(duplex)
stream.writeLP(buf)
stream.writePB(buf, def)
//.. etc

API Docs

License

Licensed under either of

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.