New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vrcode

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vrcode

A Vue component to generate QR Code and download.

  • 1.2.7-readme
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

vrcode (Vue QR Code)

Minified + gzip package size for vrcode in KB Build Status Downloads Version License Chat

A Vue component to generate QR Code and download.

img

Table of contents

Getting started

Install

npm i @ispa.io/vrcode

Usage

import Vue from 'vue';

Vue.component('vrcode', require('vrcode').default);

Example

<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>

Props

value

  • Type: String
  • Default: undefined

The value of the QR code.

download

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

type

  • Type: String
  • Default: 'canvas'

You can use canvas or svg. But SVG not support to download now.

options

  • Type: Object

  • Values:

    • level

      • Type: String
      • Default: 'L'

      Possible levels are shown below:

      LevelError resistance
      L (Low)~7%
      M (Medium)~15%
      Q (Quartile)~25%
      H (High)~30%
    • padding

      • Type: Number
      • Default: 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

      • Type: String
      • Default: '#fff'
    • foreground

      • Type: String
      • Default: '#000'
    • className

      • Type: String
      • Default: ''

Milestone

  • Transparent background
  • PNG transparent background download
  • With centered logo

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Malayvuong

⬆ back to top

Keywords

FAQs

Package last updated on 27 Jun 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc