https://github.com/evocount/ember-scanner
QR code and barcode scanner for Ember
https://github.com/evocount/ember-scanner
barcode ember-addon qr-code scanner zxing
Last synced: 3 months ago
JSON representation
QR code and barcode scanner for Ember
- Host: GitHub
- URL: https://github.com/evocount/ember-scanner
- Owner: evocount
- License: mit
- Created: 2019-01-20T09:00:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-30T22:52:10.000Z (almost 4 years ago)
- Last Synced: 2025-02-15T18:54:18.024Z (3 months ago)
- Topics: barcode, ember-addon, qr-code, scanner, zxing
- Language: JavaScript
- Homepage:
- Size: 3.46 MB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://travis-ci.org/evocount/ember-scanner)
[](https://badge.fury.io/js/ember-scanner)ember-scanner
==============================================================================QR code and barcode scanner for Ember based on [@zxing/library](https://github.com/zxing-js/library). ([Demo](https://evocount.github.io/ember-scanner/))
Installation
------------------------------------------------------------------------------```
ember install ember-scanner
```Usage
------------------------------------------------------------------------------```hbs
Result: {{this.result.text}}
```or
```hbs
```
* `device`: Id of video-device (camera) to use for scanning (use one of the devices reported by `onDevicesFound` or `undefined` for automatic selection)
* `onScanSuccess`: Reports scan results as object after valid code was scanned. Decoded message is in `text`
* `onScanError`: In case error occurs during scanning
* `onDevicesFound`: Reports list of available devices/cameras as objects with fields `label`, `deviceId`
* `onDevicesError`: In case scan for devices failsContributing
------------------------------------------------------------------------------See the [Contributing](CONTRIBUTING.md) guide for details.
License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).