Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fengyuanchen/vue-barcode
Bar code component for Vue.js
https://github.com/fengyuanchen/vue-barcode
bar-code barcode vue vue-barcode vue-component vuejs
Last synced: about 13 hours ago
JSON representation
Bar code component for Vue.js
- Host: GitHub
- URL: https://github.com/fengyuanchen/vue-barcode
- Owner: fengyuanchen
- License: mit
- Created: 2017-04-28T10:16:17.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-08-12T13:03:43.000Z (over 1 year ago)
- Last Synced: 2024-11-15T07:06:45.257Z (2 days ago)
- Topics: bar-code, barcode, vue, vue-barcode, vue-component, vuejs
- Language: JavaScript
- Homepage: https://fengyuanchen.github.io/vue-barcode/
- Size: 1.75 MB
- Stars: 205
- Watchers: 4
- Forks: 32
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-barcode
[![Coverage Status](https://img.shields.io/codecov/c/github/fengyuanchen/vue-barcode.svg)](https://codecov.io/gh/fengyuanchen/vue-barcode) [![Downloads](https://img.shields.io/npm/dm/@chenfengyuan/vue-barcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Version](https://img.shields.io/npm/v/@chenfengyuan/vue-barcode.svg)](https://www.npmjs.com/package/@chenfengyuan/vue-barcode) [![Gzip Size](https://img.shields.io/bundlephobia/minzip/@chenfengyuan/vue-barcode.svg)](https://unpkg.com/@chenfengyuan/vue-barcode/dist/vue-barcode.js)
> Bar code component for Vue 3, bases on [JsBarcode](https://github.com/lindell/JsBarcode). For Vue 2, check out the [`v1`](https://github.com/fengyuanchen/vue-barcode/tree/v1) branch.
- [Docs](src/README.md)
- [Demo](https://fengyuanchen.github.io/vue-barcode)## Main npm package files
```text
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)
└── vue-barcode.d.ts (TypeScript Declaration File)
```## Getting started
### Installation
Using npm:
```shell
npm install jsbarcode@3 @chenfengyuan/vue-barcode@2
```Using pnpm:
```shell
pnpm add jsbarcode@3 @chenfengyuan/vue-barcode@2
```Using Yarn:
```shell
yarn add jsbarcode@3 @chenfengyuan/vue-barcode@2
```Using CDN:
```html
```
### Usage
```js
import { createApp } from 'vue';
import VueBarcode from '@chenfengyuan/vue-barcode';const app = createApp({});
app.component(VueBarcode.name, VueBarcode);
``````html
```
## Browser support
Same as Vue 3.
## Versioning
Maintained under the [Semantic Versioning guidelines](https://semver.org/).
## License
[MIT](https://opensource.org/licenses/MIT) © [Chen Fengyuan](https://chenfengyuan.com/)