Skip to content

Detect barcode scan, and detect quick scans for custom actions

License

Notifications You must be signed in to change notification settings

angus-mcritchie/scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/scanner

Quick 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

About

Detect barcode scan, and detect quick scans for custom actions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published