qr-scanner-cli / Exports
Ƭ Flags: { clear?
: boolean ; clipboard?
: boolean ; open?
: boolean }
Name | Type |
---|---|
clear? |
boolean |
clipboard? |
boolean |
open? |
boolean |
Defined in: cli/flags.ts:13
▸ Const
scanFromFile(filePath
: string, flags?
: Flags): Promise<string>
This function reads a file, get it's bitmap, searches and read a qrcode from it.
const value = await scanFromFile('./image.jpg')
Name | Type | Description |
---|---|---|
filePath |
string | A file path for an image file containing a QR Code |
flags? |
Flags |
Returns: Promise<string>
Value read from the QR Code inside the image
Defined in: pipelines/scanFromFile.ts:17