BrOrlandi / qr-scanner-cli

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QR Scanner CLI

Build Status Coverage Status Greenkeeper badge

QR Scanner CLI is a project that can resolve any QR code from an image on your desktop.

Installation

Installation is done using the npm install command:

npm i -g qr-scanner-cli

Usage CLI mode

$ qrscanner <input file>

New Demo Gif

Options

- --clean  -c  Clear output, just print the QR Code scan result
- --version Show installed version
- --clipboard, -p  copy the qr code value to your clipboard
- --help Show this help

Examples

$ qrscanner ./qrCode.jpg
╔══════════════════════════════════════════╗
║                                          ║
║   This message is written in a QR Code   ║
║                                          ║
╚══════════════════════════════════════════╝

$ qrscanner ./qrCode.jpg --clean
This message is written in a QR Code

Usage programmatic

npm install qr-scanner-cli
const qrScanner = require('qr-scanner-cli')

qrScanner('path/to/file.png')
  .then((result) => {
    console.log('QR Code content: ', result)
  })

About


Languages

Language:JavaScript 100.0%