# vue-zxing-scanner

> ZXing Wrapper for Vue 2

Latest version **0.1.3-beta** (published 2021-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-zxing-scanner
pnpm add vue-zxing-scanner
yarn add vue-zxing-scanner
bun add vue-zxing-scanner
```

## 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.1.3-beta |
| Published | 2021-06-18 |
| First published | 2021-06-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 15.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Tri Sutrisno |
| Maintainers | trikarai |
| Keywords | vue, vue-zxing, zxing, zxingjs, zxing/library, qrcode, barcode, barcode reader, qrcode reader, qr reader |

## Links

- npm: https://www.npmjs.com/package/vue-zxing-scanner
- Repository: https://trikarai@github.com/trikarai/vue-zxing-scanner
- Homepage: https://github.com/trikarai/vue-zxing-scanner#readme
- Issues: https://github.com/trikarai/vue-zxing-scanner/issues
- npm.io page: https://npm.io/package/vue-zxing-scanner

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [@zxing/library](https://npm.io/package/@zxing/library.md) ^0.18.6

## 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.1.3-beta (latest) — 2021-06-18
- 0.1.2-beta — 2021-06-18
- 0.1.1-beta — 2021-06-17
- 0.1.0-beta — 2021-06-17

## README

# vue-zxing-scanner
# Vue Barcode and QR code scanner

## Benefits

* Can scan both barcodes and QR codes
* Uses [ZXing](https://github.com/zxing-js/library) ("zebra crossing"), an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.

## Install

```js
npm i vue-zxing-scanner
```

## Usage

The Vue Zxing Scanner works out of the box by just including it.

### Using Video Camera

Once a stream from the users camera is loaded, it's displayed and continuously scanned for barcodes. Results are indicated by the decode event.

```js
import Vue from "vue";
import VueZxingScanner from "vue-zxing-scanner";
Vue.use(VueZxingScanner);
```

In your template you can use this syntax:
```html
<div style="width:300px">
  <v-zxing
    @decode="onDecode"
    @loaded="onLoaded"
  />
</div>
```

```js
methods: {
  onDecode (result) {
    console.log(result)
  }
}
```

### Scanning from Image

TODO

### Credit
https://github.com/olefirenko/vue-barcode-reader

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