Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@yudiel/react-qr-scanner
Advanced tools
Checkout the Demo.
yarn add @yudiel/react-qr-scanner
npm install @yudiel/react-qr-scanner
import {QrScanner} from '@yudiel/react-qr-scanner';
const App = () => {
return (
<QrScanner
onDecode={(result) => console.log(result)}
onError={(error) => console.log(error?.message)}
/>
);
}
1D product | 1D industrial | 2D |
---|---|---|
UPC-A | Code 39 | QR Code |
EAN-8 | Code 128 | Data Matrix |
EAN-13 | RSS-14 | Aztec |
PDF 417 |
Properties | Types | Default Value | Description |
---|---|---|---|
constraints | MediaTrackConstraints | { facingMode: 'environment' } | Specify which camera should be used (if available). |
containerStyle | object | none | Style object for the container element. |
videoStyle | object | none | Style object for the video element. |
scanDelay | number | 500 | The scan period for the QR hook. |
videoId | string | videoId | The Id for the video element. |
onResult | function | none | Scan event handler for result object. |
onDecode | function | none | Scan event handler for decode value. |
onError | function | none | Scan event handler for error object. |
ViewFinder | component | none | ViewFinder component to rendering as overlay in the video element |
hideCount | boolean | true | Hide the scanned count as overlay in the video element |
stopDecoding | boolean | false | Stop the decoding process |
FAQs
A library to scan QR codes in React.
The npm package @yudiel/react-qr-scanner receives a total of 13,402 weekly downloads. As such, @yudiel/react-qr-scanner popularity was classified as popular.
We found that @yudiel/react-qr-scanner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.