Socket
Socket
Sign inDemoInstall

@chenfengyuan/vue-qrcode

Package Overview
Dependencies
51
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @chenfengyuan/vue-qrcode

QR code component for Vue 3.


Version published
Weekly downloads
21K
decreased by-23.27%
Maintainers
1
Install size
18.7 kB
Created
Weekly downloads
 

Changelog

Source

2.0.0-rc.1 (2021-08-23)

Bug Fixes

  • improve the compatibility of svg elements (102a388)

Features

  • add ready event (10ddebb)

Readme

Source

vue-qrcode

Coverage Status Downloads Version Gzip Size

QR code component for Vue 3, bases on node-qrcode. For Vue 2, check out the v1 branch.

Main files

dist/
├── vue-qrcode.js         (UMD, default)
├── vue-qrcode.min.js     (UMD, compressed)
├── vue-qrcode.esm.js     (ECMAScript Module)
├── vue-qrcode.esm.min.js (ECMAScript Module, compressed)
└── vue-qrcode.d.ts       (TypeScript Declaration File)

Getting started

Installation

Using npm:

npm install vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2

Using pnpm:

pnpm add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2

Using Yarn:

yarn add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2

Using CDN:

<script src="https://unpkg.com/vue@3"></script><!-- Vue.js is required -->
<script src="https://unpkg.com/qrcode@1.5.0/build/qrcode.js"></script><!-- qrocde is required -->
<script src="https://unpkg.com/@chenfengyuan/vue-qrcode@2"></script>

Usage

import { createApp } from 'vue';
import VueQrcode from '@chenfengyuan/vue-qrcode';

const app = createApp({});

app.component(VueQrcode.name, VueQrcode);
<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

Keywords

FAQs

Last updated on 07 Feb 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc