Multi-format 1D/2D barcode image processing component in Vue 2+, based on zxing-js library.
Demo: -
yarn add vue-multi-format-barcode
In main.js:
import Vue from 'vue'
import MultiFormatBarcode from 'vue-multi-format-barcode'
Vue.use(MultiFormatBarcode)
In App.vue:
<multi-format-barcode />
<multi-format-barcode width="1280" heigth="720" @onDecode="getResult" />
--
You'll need vue cli globally to debug the component.
npm install -g @vue/cli
npm install -g @vue/cli-service-global
Start a development server for the component
vue serve MultiFormatBarcode.vue