https://github.com/fengyuanchen/vue-qrcode
QR code component for Vue.js
https://github.com/fengyuanchen/vue-qrcode
qr-code qrcode vue vue-component vue-qrcode vuejs
Last synced: about 1 year ago
JSON representation
QR code component for Vue.js
- Host: GitHub
- URL: https://github.com/fengyuanchen/vue-qrcode
- Owner: fengyuanchen
- License: mit
- Created: 2017-04-28T10:25:00.000Z (about 9 years ago)
- Default Branch: main
- Last Pushed: 2022-02-19T05:32:34.000Z (over 4 years ago)
- Last Synced: 2025-05-13T08:44:47.137Z (about 1 year ago)
- Topics: qr-code, qrcode, vue, vue-component, vue-qrcode, vuejs
- Language: TypeScript
- Homepage: https://fengyuanchen.github.io/vue-qrcode/
- Size: 1.52 MB
- Stars: 1,089
- Watchers: 15
- Forks: 140
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-qrcode
[](https://codecov.io/gh/fengyuanchen/vue-qrcode) [](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [](https://unpkg.com/@chenfengyuan/vue-qrcode/dist/vue-qrcode.js)
> QR code component for Vue 3, bases on [node-qrcode](https://github.com/soldair/node-qrcode). For Vue 2, check out the [`v1`](https://github.com/fengyuanchen/vue-qrcode/tree/v1) branch.
- [Docs](src/README.md)
- [Demo](https://fengyuanchen.github.io/vue-qrcode)
## Main npm package files
```text
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:
```shell
npm install vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2
```
Using pnpm:
```shell
pnpm add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2
```
Using Yarn:
```shell
yarn add vue@3 qrcode@1 @chenfengyuan/vue-qrcode@2
```
Using CDN:
```html
```
### Usage
```js
import { createApp } from 'vue';
import VueQrcode from '@chenfengyuan/vue-qrcode';
const app = createApp({});
app.component(VueQrcode.name, VueQrcode);
```
```html
```
## Browser support
Same as Vue 3.
## Versioning
Maintained under the [Semantic Versioning guidelines](https://semver.org/).
## License
[MIT](https://opensource.org/licenses/MIT) © [Chen Fengyuan](https://chenfengyuan.com/)