0.1.0 • Published 11 months ago

@m-doc/cbor v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
11 months ago

CBOR encoder/decoder for mdl

This package provides a CBOR encoder/decoder for the mdoc/mdl(ISO/IEC 18013-5).

Supported Platforms

  • Node.js
  • Browser
  • React Native

Installation

npm install @m-doc/cbor
yarn install @m-doc/cbor
pnpm install @m-doc/cbor

Usage

Encode

import { CBOR } from '@m-doc/cbor';
const encodedData = CBOR.encode('hello');
console.log(encodedData);

Decode

import { CBOR } from '@m-doc/cbor';
const decodedData = CBOR.decode(encodedData);
console.log(decodedData);

License

Apache-2.0

More Information

See the original Repo: https://github.com/openwallet-foundation-labs/mdl-js

0.1.0

11 months ago

0.6.2-next.94

11 months ago