# vue-qrcode2

> a vue qrcode component

Latest version **0.0.1** (published 2017-10-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-qrcode2
pnpm add vue-qrcode2
yarn add vue-qrcode2
bun add vue-qrcode2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-10-23 |
| First published | 2017-10-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ygtzz |
| Maintainers | ygtzz |
| Keywords | vue, qrcode |

## Links

- npm: https://www.npmjs.com/package/vue-qrcode2
- Repository: https://github.com/ygtzz/vue-qrcode
- Homepage: https://github.com/ygtzz/vue-qrcode#readme
- Issues: https://github.com/ygtzz/vue-qrcode/issues
- npm.io page: https://npm.io/package/vue-qrcode2

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) 2.4.4
- [qrious](https://npm.io/package/qrious.md) ^4.0.2
- [object-assign](https://npm.io/package/object-assign.md) ^4.1.1

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-10-23

## README

## vue-qrcode

### Install

```bash
npm install vue-qrcode2 -S

yarn add vue-qrcode2
```

### QuickStart
```javascript
require('vue-qrcode/dist/vue-qrcode.css');

// in ES6 modules
import qrcode from 'vue-qrcode';

// in CommonJS
const qrcode = require('vue-qrcode');

// in Global variable
const qrcode = VueQrcode.default;

Vue.use(qrcode);
```
```html
<qrcode :value="qrCode" :size="300"/>
```

### Params

#### props
- `background`: Background color of the QR code
- `backgroundAlpha`: Background alpha of the QR code
- `foreground`: Foreground color of the QR code
- `foregroundAlpha`: Foreground alpha of the QR code
- `level`: Error correction level of the QR code (L, M, Q, H)
- `mime`: MIME type used to render the image for the QR code	
- `padding`: Padding for the QR code (pixels)
- `size`: Size of the QR code (pixels)
- `value`: Value encoded within the QR code

You may use all of [these](https://github.com/neocotic/qrious#api) props to change the format of your QR code.

### Preview

![qrcode image](./doc/qrcode.png)

---
_Source: https://npm.io/package/vue-qrcode2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
