JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27566
  • Score
    100M100P100Q168703F
  • License MIT

QR code component for Vue 3.

Package Exports

  • @chenfengyuan/vue-qrcode

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@chenfengyuan/vue-qrcode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vue-qrcode

Build Status Coverage Status Downloads Version Gzip Size

QR code component for Vue 3, bases on node-qrcode.

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)

Getting started

Installation

npm install vue@next qrcode @chenfengyuan/vue-qrcode@next

In browser:

<script src="/path/to/vue.js"></script><!-- Vue.js is required -->
<script src="/path/to/qrcode.js"></script><!-- qrocde is required -->
<script src="/path/to/vue-qrcode.js"></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