Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxwondercorn/ember-cli-barcode
Ember addon to generate barcodes using the JSBarcode library
https://github.com/maxwondercorn/ember-cli-barcode
barcode ember-addon
Last synced: 3 months ago
JSON representation
Ember addon to generate barcodes using the JSBarcode library
- Host: GitHub
- URL: https://github.com/maxwondercorn/ember-cli-barcode
- Owner: maxwondercorn
- License: mit
- Created: 2018-01-05T01:44:20.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T23:22:47.000Z (10 months ago)
- Last Synced: 2024-04-25T06:02:51.140Z (9 months ago)
- Topics: barcode, ember-addon
- Language: JavaScript
- Homepage: https://maxwondercorn.github.io/ember-cli-barcode/
- Size: 3.47 MB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
[![Latest NPM release][npm-badge]][npm-badge-url]
![ci workflow](https://github.com/maxwondercorn/ember-cli-barcode/actions/workflows/ci.yml/badge.svg)
[![License][license-badge]][license-badge-url]
[![Ember Observer Score](https://emberobserver.com/badges/ember-cli-barcode.svg)](https://emberobserver.com/addons/ember-cli-barcode)[npm-badge]: https://img.shields.io/npm/v/ember-cli-barcode.svg
[npm-badge-url]: https://www.npmjs.com/package/ember-cli-barcode
[ember-observer-badge]: http://emberobserver.com/badges/ember-cli-barcode.svg
[ember-observer-badge-url]: http://emberobserver.com/addons/ember-cli-barcode
[license-badge]: https://img.shields.io/badge/License-MIT-yellow.svg
[license-badge-url]: https://github.com/maxwondercorn/ember-cli-barcode/blob/master/LICENSE
[dependencies-badge]: https://img.shields.io/david/maxwondercorn/ember-cli-barcode.svg
[dependencies-badge-url]: https://david-dm.org/maxwondercorn/ember-cli-barcode
[devdependencies-badge]: https://img.shields.io/david/dev/maxwondercorn/ember-cli-barcode.svg
[devdependencies-badge-url]: https://david-dm.org/maxwondercorn/ember-cli-barcode#info=devDependencies# ember-cli-barcode
An Ember addon to render barcodes using the [JsBarcode](https://github.com/lindell/JsBarcode) library. See the [demo](https://maxwondercorn.github.io/ember-cli-barcode/) to experiment with many of the barcode options.
The addon adds accessibility attributes and elements to the generated barcodes. See the [Accessibility](#Accessibility) section below.
Compatibility
------------------------------------------------------------------------------* Ember.js v3.12 or above
* Ember CLI v2.13 or above
* Embroider safe and optimized
* Node.js v10 or aboveInstallation
------------------------------------------------------------------------------```bash
$ ember install ember-cli-barcode
```By default all barcode types are added to your app. See the [build configuration](#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:
```handlebars
```
which renders:
![alt text](https://github.com/maxwondercorn/ember-cli-barcode/raw/main/images/abc123456.png "CODE128 Barcode")
By default, barcodes are rendered using the `svg` element. The element can be changed to `img` or `canvas` using the tagName property:
```handlebars
```
Use the `img` tag if you want the ability to right-click copy or save the displayed barcode.
See the [Options](OPTIONS.md) readme for detailed barcode options.
See the [Contributing](CONTRIBUTING.md) guide for details.