New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jprochazk/cbor

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jprochazk/cbor

Partial implementation of RFC 7049 (CBOR)

  • 0.2.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
86
increased by6.17%
Maintainers
1
Weekly downloads
 
Created
Source

cbor

JavaScript implementation of the CBOR RFC 7049.

David GitHub

This library provides the recommended API

import CBOR from "@jprochazk/cbor";

const encoded = CBOR.encode(json);
const decoded = CBOR.decode(encoded);

Notes

There are a few things from the specification which are currently unimplemented:

  • Byte strings
  • Tags, and the items they represent:
    • date/time, bignum/bigfloat as byte string, and others
  • 16-bit float (IEEE754 binary16)
  • Numbers larger than 32 bit (and BigInt)

These weren't required in my case, but if you need one or more of these features, submit an issue, and I'll implement it! :)

Keywords

FAQs

Package last updated on 26 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc