Installations
npm install @chenfengyuan/vue-qrcode
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
16.4.0
NPM Version
8.1.4
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (55.98%)
JavaScript (42.9%)
Shell (1.12%)
Developer
Download Statistics
Total Downloads
5,870,645
Last Day
4,409
Last Week
20,251
Last Month
93,822
Last Year
1,455,227
GitHub Statistics
1,077 Stars
41 Commits
140 Forks
16 Watching
3 Branches
2 Contributors
Bundle Size
1.29 kB
Minified
680.00 B
Minified + Gzipped
Package Meta Information
Latest Version
2.0.0
Package Id
@chenfengyuan/vue-qrcode@2.0.0
Unpacked Size
17.73 kB
Size
4.96 kB
File Count
8
NPM Version
8.1.4
Node Version
16.4.0
Total Downloads
Cumulative downloads
Total Downloads
5,870,645
Last day
-14.6%
4,409
Compared to previous day
Last week
-25.3%
20,251
Compared to previous week
Last month
-6.4%
93,822
Compared to previous month
Last year
-1.8%
1,455,227
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
51
vue-qrcode
QR code component for Vue 3, bases on node-qrcode. For Vue 2, check out the
v1
branch.
Main files
1dist/ 2├── vue-qrcode.js (UMD, default) 3├── vue-qrcode.min.js (UMD, compressed) 4├── vue-qrcode.esm.js (ECMAScript Module) 5├── vue-qrcode.esm.min.js (ECMAScript Module, compressed) 6└── vue-qrcode.d.ts (TypeScript Declaration File)
Getting started
Installation
Using npm:
1npm install vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2
Using pnpm:
1pnpm add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2
Using Yarn:
1yarn add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2
Using CDN:
1<script src="https://unpkg.com/vue@3"></script><!-- Vue.js is required --> 2<script src="https://unpkg.com/qrcode@1.5.0/build/qrcode.js"></script><!-- qrocde is required --> 3<script src="https://unpkg.com/@chenfengyuan/vue-qrcode@2"></script>
Usage
1import { createApp } from 'vue'; 2import VueQrcode from '@chenfengyuan/vue-qrcode'; 3 4const app = createApp({}); 5 6app.component(VueQrcode.name, VueQrcode);
1<vue-qrcode value="Hello, World!" :options="{ width: 200 }"></vue-qrcode>
Browser support
Same as Vue 3.
Versioning
Maintained under the Semantic Versioning guidelines.
License
MIT © Chen Fengyuan
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Warn: no topLevel permission defined: .github/workflows/deploy.yml:1
- Info: no jobLevel write permissions found
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/fengyuanchen/vue-qrcode/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/fengyuanchen/vue-qrcode/ci.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/fengyuanchen/vue-qrcode/deploy.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/fengyuanchen/vue-qrcode/deploy.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:19
- Warn: npmCommand not pinned by hash: .github/workflows/deploy.yml:19
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 3 are checked with a SAST tool
Reason
40 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25
- Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc
- Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx
- Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq
- Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488
- Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr
- Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765
- Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j
- Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986
- Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
2.5
/10
Last Scanned on 2025-01-27
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