I would to receive barcode string events in the browser when a barcode reader device is connected to the computer. I have got no idea about how this is possible. But im expecting an implementation like:
window.addEventListener('scanner', function(readerEvent){
console.log(readerEvent
})