circ-msgpack
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Circ msgpack

A minimalistic, extensible MessagePack encoder and decoder for the web, supporting circular references. Built upon tiny-msgpack.

Why not just use tiny-msgpack?

This library adds support for circular references and undefined as a value.

Installation

 $ npm i circ-msgpack

Usage

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

Contribute

All feedback is appreciated. Create a pull request or write an issue.

Package Sidebar

Install

npm i circ-msgpack

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

8.16 kB

Total Files

6

Last publish

Collaborators

  • zzrv