Socket
Socket
Sign inDemoInstall

vue-zxing-scanner

Package Overview
Dependencies
14
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-zxing-scanner

ZXing Wrapper for Vue 2


Version published
Maintainers
1
Install size
38.0 MB
Created

Readme

Source

vue-zxing-scanner

Vue Barcode and QR code scanner

Benefits

  • Can scan both barcodes and QR codes
  • Uses ZXing ("zebra crossing"), an open-source, multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages.

Install

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.

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

In your template you can use this syntax:

<div style="width:300px">
  <v-zxing
    @decode="onDecode"
    @loaded="onLoaded"
  />
</div>
methods: {
  onDecode (result) {
    console.log(result)
  }
}

Scanning from Image

TODO

Credit

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

Keywords

FAQs

Last updated on 18 Jun 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc