Socket
Socket
Sign inDemoInstall

ember-scanner

Package Overview
Dependencies
655
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-scanner

QR code and barcode scanner for Ember.


Version published
Weekly downloads
154
decreased by-1.91%
Maintainers
1
Install size
85.1 MB
Created
Weekly downloads
 

Readme

Source

Build Status npm version

ember-scanner

QR code and barcode scanner for Ember based on @zxing/library. (Demo)

Installation

ember install ember-scanner

Usage

<CodeScanner
  @onScanSuccess={{fn (mut this.result)}}
/>

Result: {{this.result.text}}

or

<CodeScanner
  @device={{this.camera}}
  @onScanSuccess={{fn this.onScanSuccess}}
  @onScanError={{fn this.onScanError}}
  @onDevicesFound={{fn this.onCamerasFound}}
  @onDevicesError={{fn this.onCamerasError}}
/>
  • 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 fails

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

FAQs

Last updated on 20 Oct 2020

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