Skip to content

Encode and decode CBOR documents, with both easy mode, streaming mode, and SAX-style evented mode.

License

Notifications You must be signed in to change notification settings

hildjj/node-cbor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a6a1fe2 · Dec 19, 2024
Oct 27, 2024
Dec 19, 2024
Aug 7, 2019
Oct 25, 2024
Feb 15, 2021
Jul 28, 2021
Oct 27, 2024
Jan 30, 2019
May 14, 2023
Dec 19, 2024
Oct 25, 2024
Feb 10, 2021
Feb 10, 2021
Nov 6, 2024
Oct 25, 2024
Oct 25, 2024
Dec 19, 2024
Dec 19, 2024
Oct 27, 2024

Repository files navigation

CBOR

Encode and parse data in the Concise Binary Object Representation (CBOR) data format (RFC8949).

MOVE TO CBOR2

NOTE

All new users and most existing users of these libraries should move to the cbor2 library. It is where most maintenance and support and all new features are happening.

Only catastrophic bugs will be fixed in these libraries going forward.

Pointers

This is a monorepo that holds a few related packages:

Tooling

  • Install with pnpm install -r, see. The important thing (for example) is that the cbor-cli package ends up depending on the local version of cbor.
  • monorepo-wide scripts:
    • install-global (make available everywhere) or install-local (use npx if you want to us it outside a package script) install all of the tooling that might be needed locally, but isn't needed on CI
    • deploy: build and deploy cbor-web and all of the actions
    • coverage: run tests and report coverage; look in coverage/lcov-report/index.html.
    • lint: run eslint over all projects

GitHub dependencies

If 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

Supported Node.js versions

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.

About

Encode and decode CBOR documents, with both easy mode, streaming mode, and SAX-style evented mode.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages