QR Scanner CLI is a project that can resolve any QR code from an image on your desktop.
Installation is done using the npm install command:
npm i -g qr-scanner-cli
$ qrscanner <input file>
- --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
$ qrscanner ./qrCode.jpg
╔══════════════════════════════════════════╗
║ ║
║ This message is written in a QR Code ║
║ ║
╚══════════════════════════════════════════╝
$ qrscanner ./qrCode.jpg --clean
This message is written in a QR Code
npm install qr-scanner-cli
const qrScanner = require('qr-scanner-cli')
qrScanner('path/to/file.png')
.then((result) => {
console.log('QR Code content: ', result)
})