Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 884 Bytes

README.md

File metadata and controls

39 lines (24 loc) · 884 Bytes

Barcode Scanner

Version 0.1.0

Detect data scanned by barcode readers

Example

let Scanner = require('barcode-scanner')
let scanner = new Scanner()

scanner.on('scanned', (str, type)=>{
  console.log(`Scanned ${type}: ${str}`)
})

Methods

.startListening()

Begins and continues listening for scans. This is activated upon initialization

.stopListening()

Stops listening for scans.

Supported Devices

Tested on the following

License

MIT © Kevin Jantzer – Blackstone Publishing