www.electronjs.org | Support Level
= Strong
You can download this from Github release page or npm. And include this in index.html
.
<script src="html5-qrcode.min.js"></script>
<div style="width: 600px" id="reader"></div>
function onScanSuccess(decodedText, decodedResult) {
// Handle on success condition with the decoded message.
console.log(`Scan result ${decodedText}`, decodedResult);
}
var html5QrcodeScanner = new Html5QrcodeScanner(
"reader", { fps: 10, qrbox: 250 });
html5QrcodeScanner.render(onScanSuccess);
npm start