5.0.2 • Published 1 year ago

a-msgpack v5.0.2

Weekly downloads
11
License
MIT
Repository
github
Last release
1 year 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

1 year ago

5.0.1

2 years ago

4.13.0

2 years ago

4.12.1

2 years ago

4.14.0

2 years ago

4.13.1

2 years ago

4.12.2

2 years ago

4.11.0

3 years ago

4.12.0

3 years ago

4.10.1

3 years ago

4.10.0

3 years ago

4.9.2

3 years ago

4.9.1

3 years ago

4.9.0

3 years ago

4.8.0

3 years ago

4.7.0

3 years ago

4.6.5

3 years ago

4.6.4

3 years ago

4.6.3

3 years ago

4.6.2

3 years ago

4.6.1

3 years ago

4.6.0

4 years ago

4.5.5

4 years ago

4.5.4

4 years ago

4.5.3

4 years ago

4.5.1

4 years ago

4.5.0

4 years ago

4.4.0

4 years ago

4.3.1

4 years ago

4.3.0

4 years ago

4.2.1-alpha.0

4 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.5

4 years ago

4.0.4

4 years ago

4.0.3

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

0.3.4

4 years ago

0.1.42

5 years ago