Class: Qr
Defined in: qr/Qr.ts:8
Wrapper around the pairing QR code with convenient utilities.
The raw value (raw) is the string encoded by the QR; you can generate your
own image from it if you need to (PNG, DataURL, …).
Constructors
Constructor
new Qr(
raw):Qr
Defined in: qr/Qr.ts:9
Parameters
raw
string
Returns
Qr
Properties
raw
readonlyraw:string
Defined in: qr/Qr.ts:9
Methods
printToTerminal()
printToTerminal(
options?):void
Defined in: qr/Qr.ts:12
Renders the QR as ASCII art in the terminal.
Parameters
options?
small?
boolean
Returns
void
toString()
toString():
string
Defined in: qr/Qr.ts:17
Returns the raw QR value.
Returns
string