Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

pull-protocol-buffers

0.1.3 • Public • Published

pull-protocol-buffers

Greenkeeper badge

Build Status codecov

Protocol Buffers length-prefixed pull-stream encoder/decoder

API

  • ppb.encode(proto)

    Encodes messages that come in

    proto: The Protocol buffers message

    returns: A length-prefixed duplex

  • ppb.decode(proto)

    Decodes protocol-buffers that come in

    proto: The Protocol buffers message

    returns: A length-prefixed duplex

  • .pull

    The same api as above just without length-prefixing.

    Not network safe. Useful for encoding/decoding single messages.

Install

npm i pull-protocol-buffers

DownloadsWeekly Downloads

6

Version

0.1.3

License

MIT

Unpacked Size

4.61 kB

Total Files

8

Last publish

Collaborators

  • avatar