Skip to content

kjantzer/backbone-barcode-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

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