0.1.0 • Published 11 months ago
@m-doc/cbor v0.1.0
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/cboryarn install @m-doc/cborpnpm install @m-doc/cborUsage
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