@chenfengyuan/vue-barcode

Bar code component for Vue.js.

Usage no npm install needed!

<script type="module">
  import chenfengyuanVueBarcode from 'https://cdn.skypack.dev/@chenfengyuan/vue-barcode';
</script>

README

vue-barcode

Coverage Status Downloads Version Gzip Size

Bar code component for Vue 3, bases on JsBarcode.

Main files

dist/
├── vue-barcode.js         (UMD, default)
├── vue-barcode.min.js     (UMD, compressed)
├── vue-barcode.esm.js     (ECMAScript Module)
└── vue-barcode.esm.min.js (ECMAScript Module, compressed)

Getting started

Installation

npm install vue@next jsbarcode @chenfengyuan/vue-barcode@next

In browser:

<script src="/path/to/vue.js"></script><!-- Vue.js is required -->
<script src="/path/to/JsBarcode.all.js"></script><!-- JsBarcode is required -->
<script src="/path/to/vue-barcode.js"></script>

Usage

import { createApp } from 'vue';
import VueBarcode from '@chenfengyuan/vue-barcode';

const app = createApp({});

app.component(VueBarcode.name, VueBarcode);
<vue-barcode  value="Hello, World!" :options="{ displayValue: false }"></vue-barcode>

Browser support

Same as Vue 3.

Versioning

Maintained under the Semantic Versioning guidelines.

License

MIT © Chen Fengyuan