@gooby/scanner
v1.2.0
Published
Detect barcode scanner scans and add custom actions for burst scans
Readme
Scanner
Used to detect scans from a barcode scanner. Also allows for custom actions when 3 identical scans within 1 second are detected.
Installation
Using NPM:
npm install @gooby/scannerQuick Start
import { Scanner } from '@gooby/scanner';
Scanner.triple(console.log); // scan the same barcode 3 times within 1 second
Scanner.single(console.log); // scan any barcode