CBOR API for Browsers/Node.js

Hi List,
Being a recent CBOR "convertee", I begun looking into the support for CBOR in JavaScript.  Somewhat unsurprisingly I came up with a proposal of my own as well :)

https://github.com/cyberphone/cbor-js-api

I plan to submit this to TC39. Since you guys are all into JavaScript and browsers, feedback would be highly appreciated. Don't comment on the code though, it is a "Reference Implementation", not  code for inclusion in JavaScript engines. Performance-wise it is pretty sluggish so some of the core parts must be (re)written in C++ or wasm, to meet reasonable expectations.

The detailed API is still missing but the test directory contains a few examples that may be useful.

Thanx,
Anders

Received on Sunday, 28 May 2023 17:28:11 UTC