hemera-msgpack

6.0.2 • Public • Published

Hemera-msgpack package

npm styled with prettier

This is a plugin to use Mspack with Hemera.

MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON. But it's faster and smaller. Small integers are encoded into a single byte, and typical short strings require only one extra byte in addition to the strings themselves.

Usage

// Use NATS driver >= 0.7.2
const nats = require('nats').connect({
  preserveBuffers: true
})
const hemera = new Hemera(nats)
hemera.use(require('hemera-msgpack'))

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i hemera-msgpack

    Weekly Downloads

    28

    Version

    6.0.2

    License

    MIT

    Unpacked Size

    3.12 kB

    Total Files

    5

    Last publish

    Collaborators

    • starptech