quagga2-vue3

esm
A Vue.js component (patched for vuejs 3), accessing the device camera and allowing users to read barcodes, within the browser
Version 1.0.1 License MIT
Keywords
quagga2vuevue3barcode-readerbarcode-scanner
<script type="module"> import quagga2Vue3 from 'https://cdn.jsdelivr.net/npm/quagga2-vue3@1.0.1/+esm' </script>
quagga2-vue3
Vue3 wrapper for ericblade/quagga2
⚙️ Usage
Add the dependency to your project:
npm i quagga2-vue3
# OR
yarn add quagga2-vue3
<script>
import { QuaggaScanner } from "vue3-quagga2";
</script>
<template>
<QuaggaScanner
:on-detected="(data) => console.log(data)"
:reader-types="['ean_reader']"
/>
</template>
You can find an example usage in the /example folder. Check the component for available props
💡 Inspired by
quagga2/quaggaJS related projects:
- ericblade/quagga2 (active fork of quaggaJS)
- serratus/quaggaJS (seems to be no longer maintained)
- vue3-quagga2 (not completed)
- sin-tanaka/vue-quagga
- https://codesandbox.io/s/hidden-star-361gx
License
The project is licensed under the "MIT license".