2.0.0 • Published 3 years ago

@cvbb/sdk v2.0.0

Weekly downloads
10
License
ISC
Repository
github
Last release
3 years ago

@cvbb/sdk

@cvbb/sdk is library for helping developer to do integration with Cobo Vault.

the main purpose is to encode and decode data for QR Code usage.

currently we use UR to encode data. check this for detail info about UR

Usage

import sdk from '@cvbb/sdk';
const read = async () => {
    const result = await sdk.read();
}

const play = async () => {
    await sdk.play("any data string");
}

API

NameParametersresultDescription
readPromise<{type: 'text' | 'json' | 'ur', data: string} | null>Open a modal and read qrcode with camera, will return null when click Close button
playdata: string, options?: {refreshSpeed?: number}PromiseOpen a modal and display a dynamic qrcode, will resolve when click Finish button
2.0.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago