A minimalistic, extensible MessagePack encoder and decoder for the web, supporting circular references. Built upon tiny-msgpack.
npm install circ-msgpackundefined as a value.
shell
$ npm i circ-msgpack
`
Usage
`ts
import { encode, decode } from "circ-msgpack"
const ob = { a: 1, b: "2", c: undefined }
ob.d = ob
const encoded = encode(ob)
const decoded = decode(encoded)
console.log(deepCircularEqual(ob, decoded)) // true
``