◐ Shell
clean mode source ↗

GitHub - vibornoff/msgpack-javascript: MessagePack serializer implementation for JavaScript / msgpack.org[JavaScript]

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

This repository was archived by the owner on Oct 22, 2021. It is now read-only.

MessagePack

Space-efficient binary serialization format.

Quick start

// Got ArrayBuffer object
var packed = msgpack.pack( { the: { very: [ "long", true, "data" ], "structure" },
                             depth: "is", such: [ NaN, Inifinity ],
                             wow: new ArrayBuffer(100), is: 100 } );

// Got the original "such much" data structure
var data = msgpack.unpack(packed);

Options

  • msgpack.MAX_DEPTH = 512 - adjust maximum allowable data depth

Languages

  • HTML 60.9%
  • JavaScript 39.1%