@m-doc/cbor
v0.1.0
Published
mdl implementation in typescript
Downloads
89
Readme
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