Gathering detailed insights and metrics for vue-qrcode-reader-polyfill
Gathering detailed insights and metrics for vue-qrcode-reader-polyfill
Gathering detailed insights and metrics for vue-qrcode-reader-polyfill
Gathering detailed insights and metrics for vue-qrcode-reader-polyfill
A set of Vue.js components for detecting and decoding QR codes.
npm install vue-qrcode-reader-polyfill
Typescript
Module System
Node Version
NPM Version
TypeScript (54.25%)
Vue (43.57%)
Nix (1.39%)
JavaScript (0.76%)
Shell (0.02%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2,236 Stars
379 Commits
348 Forks
35 Watchers
22 Branches
30 Contributors
Updated on Jul 16, 2025
Latest Version
0.1.0
Package Id
vue-qrcode-reader-polyfill@0.1.0
Unpacked Size
4.38 MB
Size
1.76 MB
File Count
36
NPM Version
9.4.0
Node Version
19.5.0
Published on
Feb 02, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A set of Vue.js components, allowing you to detect and decode QR codes, without leaving the browser.
QrcodeStream
accesses the device camera and continuously scans incoming frames.QrcodeDropZone
renders to an empty region where you can drag-and-drop images to be decoded.QrcodeCapture
is a classic file upload field, instantly scanning all files you select.All components are responsive. Beyond that, close to zero styling. Make them fit your layout. Usage is simple and straight forward:
1<qrcode-stream @decode="onDecode"></qrcode-stream>
1methods: { 2 onDecode (decodedString) { 3 // ... 4 } 5}
Run
1npm install vue-qrcode-reader
You can import the components independantly
1import { QrcodeStream, QrcodeDropZone, QrcodeCapture } from 'vue-qrcode-reader' 2 3const MyComponent = { 4 5 components: { 6 QrcodeStream, 7 QrcodeDropZone, 8 QrcodeCapture 9 }, 10 11 // ... 12))
or register all of them globally right away
1import Vue from "vue"; 2import VueQrcodeReader from "vue-qrcode-reader"; 3 4Vue.use(VueQrcodeReader);
Include the following JS file:
https://unpkg.com/vue-qrcode-reader/dist/VueQrcodeReader.umd.min.js
Make sure to include it after Vue:
1<script src="./vue.js"></script> 2<script src="./VueQrcodeReader.umd.min.js"></script>
All components are automatically registered globally. Use kebab-case to reference them in your templates:
1<qrcode-stream></qrcode-stream> 2<qrcode-drop-zone></qrcode-drop-zone> 3<qrcode-capture></qrcode-capture>
Modern devices sometimes have multiple rear cameras. Not all are optimal for scanning QR codes. For example wide angle, infrared and virtual cameras. With the current web API it's hard to pick the right camera automatically. It's technically possible to let the user make that decision. For example by displaying list of installed cameras and letting the user select the right one. However, this is a user experience trade-off. Native QR code reader applications don't face this trade-off. That's why we want to find a different solution.
Please create a GitHub issue from the wrong camera selected template and follow the instructions in the text.
QrcodeStream
.init
event to investigate errors.No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
Found 9/28 approved changesets -- score normalized to 3
Reason
1 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
24 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More