cen-qrgen
v5.0.0
Published
Provider's QR code generator for Centiva Life
Downloads
2
Readme
Centiva QR Code generator
Install
npm i -g cen-qrgen
Usage
Set up
You need to set 3 environment variables to use this tool:
export PROVIDER_PRIVATE_KEY=<Provider private key>
export REGISTRATION_URL=<Provider registration url>
export BRANCH_KEY=<Branchio key>
Instructions
cen-qrgen --help
Usage: -i <patient ID> -t <info text> -o <output image path>
Options:
--help Show help [boolean]
--version Show version number [boolean]
-i, --id Patient Id [string] [required]
-t, --infoText Info text [string] [required]
-o, --output Output image [string]
Run
cen-qrgen -i <patient_id> -t <info_text> -o <output_file_path>
E.g.
cen-qrgen -i 7777777 -t "This is an example" -o "./qrcode1.png"
Response
╭─────────────────────────────────────╮
│ │
│ Centiva QR Code Generator <ver> │
│ │
╰─────────────────────────────────────╯
Generated link: https://generated.link