npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@rudashi/vue-barcode

v1.1.0

Published

Vue barcode component based on jsbarcode

Readme

vue-barcode

Barcode component for Vue 3 based on JsBarcode.

Installation

NPM:

npm install @rudashi/vue-barcode

YARN:

yarn add @rudashi/vue-barcode

Usage

Basic use

Import the component and use it in your Vue template. The component will automatically generate a barcode based on the value provided.


<script setup>
    import VueBarcode from '@rudashi/vue-barcode';
</script>

<template>
    <vue-barcode value="123456789012"/>
</template>

Use with props

You can also pass options directly as props:

<vue-barcode
    value="123456789012"
    format="EAN13"
    :display-value="true"
    :height="50"
    line-color="#007bff"
/>

or use the options prop to pass an object with all options:

<vue-barcode
    value="123456789012"
    :options="{
      format: 'EAN13',
      displayValue: true,
      height: 50,
      lineColor: '#007bff',
    }"
/>

API Documentation

Props

| Name | Type | Default | Description | |:---------------|:-------------------|:--------------|:------------------------------------------------------| | value | string | required | Barcode value | | options | object | undefined | JsBarcode options object | | format | string | ‘CODE128’ | Barcode format | | width | number \| string | 2 | Width of a single bar | | height | number \| string | 100 | Barcode height | | displayValue | boolean | true | Whether to display text below the code | | text | number \| string | undefined | Override the text displayed below the code | | fontOptions | string | ‘’ | Font options (bold, italic, bold italic) | | font | string | ‘monospace’ | Font family | | textAlign | string | ‘center’ | Text alignment | | textPosition | string | ‘bottom’ | Text position (top, bottom). | | textMargin | number \| string | 2 | Text margin | | fontSize | number \| string | 20 | Font size | | background | string | ‘#ffffff’ | Background color (HEX) | | lineColor | string | ‘#000000’ | Line color (HEX) | | margin | number \| string | 10 | General margin around the code | | marginTop | number \| string | undefined | Top margin | | marginBottom | number \| string | undefined | Bottom margin | | marginLeft | number \| string | undefined | Left margin | | marginRight | number \| string | undefined | Right margin | | flat | boolean | false | Should the code be without anti-aliasing optimization | | valid | function | undefined | Callback called after code validation |

Supported code formats

The component supports all formats supported by JsBarcode:

  • CODE128 (A, B, C)
  • EAN (13, 8, 5, 2)
  • UPC (A, E)
  • CODE39
  • ITF / ITF14
  • MSI / MSI10 / MSI11 / MSI1010 / MSI1111
  • Pharmacode
  • Codabar
  • CODE93

License

Package is open-sourced software licensed under the MIT license