Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

quagga2-vue3

nick-010140MIT1.0.1TypeScript support: included

A Vue.js component (patched for vuejs 3), accessing the device camera and allowing users to read barcodes, within the browser

quagga2, vue, vue3, barcode-reader, barcode-scanner

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:

License

The project is licensed under the "MIT license".