You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@ombori/ga-barcode-scanner

Package Overview
Dependencies
Maintainers
14
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ombori/ga-barcode-scanner

## Installation


Version published
Weekly downloads
27
increased by50%
Maintainers
14
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

Package last updated on 30 May 2024

Did you know?

Socket

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc