Socket
Socket
Sign inDemoInstall

ember-cli-barcode

Package Overview
Dependencies
377
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-cli-barcode

Ember barcode generator using the JSBarcode library.


Version published
Weekly downloads
250
increased by39.66%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.1.0 (2022-06-23)

Features

  • Add barcode download example to demo (cdae8a8)

Readme

Source

Latest NPM release ci workflow License Ember Observer Score

ember-cli-barcode

An Ember addon to render barcodes using the JsBarcode library. See the demo to experiment with many of the barcode options.

The addon adds accessibility attributes and elements to the generated barcodes. See the Accessibility section below.

Compatibility

  • Ember.js v3.12 or above
  • Ember CLI v2.13 or above
  • Embroider safe and optimized
  • Node.js v10 or above

Installation

  $ ember install ember-cli-barcode

By default all barcode types are added to your app. See the build configuration section for slimming your build

Simple Usage

To render a barcode provide the barcode value and the default options will generate a CODE128 barcode:

<BarCode @value="abc123456" />

which renders:

alt text

By default, barcodes are rendered using the svg element. The element can be changed to img or canvas using the tagName property:

<BarCode
  @value="A45689"
  @tagName="img"
/>

<BarCode
  value="A45689"
  tagName="canvas"
/>

Use the img tag if you want the ability to right-click copy or save the displayed barcode.

See the Options readme for detailed barcode options.

See the Contributing guide for details.

Keywords

FAQs

Last updated on 23 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc