vue3-upc-barcode-generator

generate a UPC barcode using vue3

Usage no npm install needed!

<script type="module">
  import vue3UpcBarcodeGenerator from 'https://cdn.skypack.dev/vue3-upc-barcode-generator';
</script>

README

screenshot

Install:

npm i vue3-upc-barcode-generator

Example:

<template>

    <Upc @upc-barcode-created="upcBarcodeCreated"></Upc>

</template>

<script>

    import Upc from '@/Components/Upc'

    export default {
        components: {

            Upc

        },
        setup() {

            function upcBarcodeCreated(image) {

                console.log(image)//the barcode data URL is returned here if you need it

            }

            return { upcBarcodeCreated }

        }
    }
</script>