@gooby/scanner

1.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    10
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    10
  • 1.1.0
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i @gooby/scanner

Weekly Downloads

10

Version

1.1.1

License

MIT

Unpacked Size

7.73 kB

Total Files

9

Last publish

Collaborators

  • angus_mcritchie