quagga2-vue3
v1.0.1
Published
A Vue.js component (patched for vuejs 3), accessing the device camera and allowing users to read barcodes, within the browser
Downloads
117
Maintainers
Readme
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".