You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-qr-barcode-scanner

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-qr-barcode-scanner - npm Package Compare versions

Comparing version

to
2.1.0

dist/BarcodeScanner.d.ts

6

dist/index.d.ts

@@ -1,2 +0,4 @@

import BarcodeScannerComponent from './BarcodeScannerComponent';
export default BarcodeScannerComponent;
import BarcodeScanner from "./BarcodeScanner";
export { default as BarcodeStringFormat } from "./BarcodeStringFormat";
export { BarcodeFormat } from "@zxing/library";
export default BarcodeScanner;

@@ -1,2 +0,4 @@

import BarcodeScannerComponent from './BarcodeScannerComponent';
export default BarcodeScannerComponent;
import BarcodeScanner from "./BarcodeScanner";
export { default as BarcodeStringFormat } from "./BarcodeStringFormat";
export { BarcodeFormat } from "@zxing/library";
export default BarcodeScanner;
{
"name": "react-qr-barcode-scanner",
"version": "2.0.4",
"version": "2.1.0",
"description": "A simple React Component using the client's webcam to read barcodes and QR codes.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -21,11 +21,11 @@ # React QR Barcode Scanner

```jsx
import React from "react";
import BarcodeScannerComponent from "react-qr-barcode-scanner";
import { useState } from "react";
import BarcodeScanner from "react-qr-barcode-scanner";
function App() {
const [data, setData] = React.useState("Not Found");
const [data, setData] = useState("Not Found");
return (
<>
<BarcodeScannerComponent
<BarcodeScanner
width={500}

@@ -102,2 +102,8 @@ height={500}

### formats
Type: `BarcodeFormat[] | BarcodeStringFormat[]`, Optional
Array of barcode formats to decode. If not provided, all formats will be used. A smaller list may improve the speed of the scan.
## Supported Barcode Formats

@@ -104,0 +110,0 @@