a-msgpack
npm i a-msgpack

a-msgpack

Resources and documentation for Arista's CloudVision platform

by aristanetworks

4.14.0 (see all)License:MITTypeScript:Built-In
npm i a-msgpack
Readme

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

Downloads/wk

37

GitHub Stars

16

LAST COMMIT

3mos ago

MAINTAINERS

1

CONTRIBUTORS

18

OPEN ISSUES

3

OPEN PRs

10
VersionTagPublished
4.14.0
latest
1mo ago
No alternatives found
No tutorials found
Add a tutorial