Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days 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 (over 7 years ago)
- Default Branch: main
- Last Pushed: 2022-02-19T05:32:34.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T15:35:45.566Z (3 months 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,064
- Watchers: 16
- Forks: 140
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-qrcode
[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-qrcode.svg)](https://codecov.io/gh/fengyuanchen/vue-qrcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-qrcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-qrcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-qrcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-qrcode.svg)](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/)