barcode-scanner-web

0.0.1 • Public • Published

barcode-scanner-web.js

A Wedge reader for barcode-scanners coming in as Keyboard Input (The only thing OS X supports since removing virtual com ports, which PC point of sale systems frequently use).

Usage

require the library

const Barcode = require('barcode-scanner-web');

A simple usage to catch all keystroke events at the document root to look for barcode events:

let scanner = new Barcode.Scanner();
Barcode.listen(document.body, scanner);
new Barcode.Scan({
    scanner: scanner,
    suffix: 'Enter',
    onScan : function(e){
        console.log('>>>>>', e);

    }
});

Testing

TBD

Enjoy,

-Abbey Hawk Sparrow

Readme

Keywords

Package Sidebar

Install

npm i barcode-scanner-web

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

81 kB

Total Files

7

Last publish

Collaborators

  • khrome