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.

/pull-protocol-buffers/

    Package Sidebar

    Install

    npm i pull-protocol-buffers

    Weekly Downloads

    7

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    4.61 kB

    Total Files

    8

    Last publish

    Collaborators

    • mkg20001