Encode and decode CBOR documents, with both easy mode, streaming mode, and SAX-style evented mode.
MIT License
Encode and parse data in the Concise Binary Object Representation (CBOR) data format (RFC8949).
This is a monorepo that holds a few related packages:
cbor
package compiled for use on thecbor
packagecbor
using webpack
cbor
using parcel
cbor
using browserify
cbor
by just using cbor-web
directlypnpm install -r
, see. The importantcbor-cli
package ends up depending on thecbor
.install-global
(make available everywhere) or install-local
(usenpx
if you want to us it outside a package script) install all of thedeploy
: build and deploy cbor-web
and all of the actionscoverage
: run tests and report coverage; look in coverage/lcov-report/index.html
.lint
: run eslint over all projectsIf you really need to get at a specific rev from GitHub, you can no longer do
npm install hildjj/node-cbor
. Instead you need:
npm install https://gitpkg.now.sh/hildjj/node-cbor/packages/cbor?main
This project now only supports versions of Node that the Node team is currently supporting. Ava's support statement is what we will be using as well. Currently, that means Node 16
+ is required. If you need to support an older version of Node (back to version 6), use cbor version 5.2.x, which will get nothing but security updates from here on out.