Socket
Socket
Sign inDemoInstall

@ombori/ga-barcode-scanner

Package Overview
Dependencies
9
Maintainers
14
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ombori/ga-barcode-scanner

## Installation


Version published
Weekly downloads
3
decreased by-96.34%
Maintainers
14
Install size
2.46 MB
Created
Weekly downloads
 

Readme

Source

React custom hook for barcode scanner integration.

Installation

npm install @ombori/ga-barcode-scanner --save

or

yarn add @ombori/ga-barcode-scanner

Usage

import useBarcodeScanner from '@ombori/ga-barcode-scanner';

const App = () => {
  const onScan = (barcode) => console.log(barcode);

  useBarcodeScanner(onScan);
  
  return <div>Hello World!</div>;
}

Helpers

There are also two helper functions that you can use to differentiate barcodes and boarding passes.

import { isBarcode, isBoardingPass } from '@ombori/ga-barcode-scanner';

FAQs

Last updated on 30 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc