5.0.2 • Published 2 years ago

a-msgpack v5.0.2

Weekly downloads
11
License
MIT
Repository
github
Last release
2 years ago

a-msgpack

MessagePack, but for Arista. This is based on the official msgpack library for JS (@msgpack/msgpack), but implements our specific NEAT protocol.

Installation

npm install a-msgpack

or

npm install a-msgpack

Usage

import { encode, decode, Codec } from 'a-msgpack';

const uint8array = msgpack.encode({ Dodgers: '#1', Astros: 'Cheaters' }, { extensionCodec: Codec });
const object = msgpack.decode(uint8array);

Browser Support

In the browser, a-msgpack requires the Encoding API to work a peak performance. If the Encoding API is unavailable, there is a fallback JS implementation.

Benchmarks

The lastest code benchmarks and profiling is stored in last-benchmark-results.txt. This also compares this implementation to other msgpack libraries. Note, that the decoding results should be comparable to @msgpack/msgpack, but encoding will be slower because NEAT requires that map keys be sorted by binary value.

License

MIT

5.0.2

2 years ago

5.0.1

3 years ago

4.13.0

3 years ago

4.12.1

3 years ago

4.14.0

3 years ago

4.13.1

3 years ago

4.12.2

3 years ago

4.11.0

4 years ago

4.12.0

4 years ago

4.10.1

4 years ago

4.10.0

4 years ago

4.9.2

4 years ago

4.9.1

4 years ago

4.9.0

4 years ago

4.8.0

4 years ago

4.7.0

4 years ago

4.6.5

4 years ago

4.6.4

4 years ago

4.6.3

5 years ago

4.6.2

5 years ago

4.6.1

5 years ago

4.6.0

5 years ago

4.5.5

5 years ago

4.5.4

5 years ago

4.5.3

5 years ago

4.5.1

5 years ago

4.5.0

5 years ago

4.4.0

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.2.1-alpha.0

5 years ago

4.2.0

5 years ago

4.1.0

5 years ago

4.0.5

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

0.3.4

6 years ago

0.1.42

6 years ago