Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-barcode

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-barcode

Ember barcode generator using the JSBarcode library.

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
29
decreased by-44.23%
Maintainers
1
Weekly downloads
 
Created
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
  • 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

The simplest form to render a barcode is to pass in a value and the default options will generate a CODE128 barcode:

<BarCode @value="abc123456" />

which renders:

alt text

The example above using classic component invocation would be:

{{bar-code value="abc123456"}}

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

Package last updated on 18 Jun 2022

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc