Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
A Vue component to generate QR Code and download.
npm i @ispa.io/vrcode
import Vue from 'vue';
Vue.component('vrcode', require('vrcode').default);
<vrcode
:download="{
text: 'Download',
filename: 'file-name.png',
visible: true, type: 'image/png'
}"
value="A Vue component to generate QR Code and download."
:options="{
size: 200,
level: 'Q'
}"
></vrcode>
String
undefined
The value of the QR code.
Passing download
props, to show download button, it support:
Type: Object
text
- button inner text
visible
- setting download button visible or not
style
- setting download button style
class
- setting download button class name
type
- image type, such as image/png; use mime type for exactly force download
filename
- file name to download
You can only download the qrcode to image by using type: canvas
String
'canvas'
You can use canvas
or svg
. But SVG not support to download now.
Type: Object
Values:
level
String
'L'
Possible levels are shown below:
Level | Error resistance |
---|---|
L (Low) | ~7% |
M (Medium) | ~15% |
Q (Quartile) | ~25% |
H (High) | ~30% |
padding
Number
10
This is padding border of image (Because users is difficult to scan with dark mode/dark background, so we need an white padding/border)
background
String
'#fff'
foreground
String
'#000'
className
String
''
Maintained under the Semantic Versioning guidelines.
FAQs
A Vue component to generate QR Code and download.
The npm package vrcode receives a total of 0 weekly downloads. As such, vrcode popularity was classified as not popular.
We found that vrcode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.