1.1.5 • Published 6 months ago

@vandrei/qrcode-scanner v1.1.5

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Scanner

This project was generated with Angular CLI version 14.2.11.

Development server

For use install

  • npm i jsqr --save

Simple scanner to qrcode.

When To Use

this scanner is used when you need to get information from qrcode using angular/ionic application. is recommended for pwa also

this lib use

https://github.com/cozmo/jsQR

Demo

API

import { QrcodeScannerModule } from 'qrcode-scanner';
  <qrcode-scanner (resultEvent)="result($event)" [config]="yourConfig"></qrcode-scanner>

qrcode-scanner

PropertyDescriptionTypeDefaultGlobal Config
[config]this config hava a default but you can send a custom configIVideoConfig
(resultEvent)this is return of scanned qrcodestringempty

Default config and structure exemple

const VIDEO_CONFIG = {
  video: {
    width: {min: 250, max: 450, ideal: 400},
    height: {min: 250, max: 450, ideal: 400},
    facingMode: 'enviroment'
  }
}

QrcodeScannerService

PropertyDescriptionType
result$BehaviorSubject return and save qrcode dataBehaviorSubject - string
errors$Subject return internal errosSubject - string
changeCamera$Subject trigger change cameraSubject - void
1.1.1

6 months ago

1.2.0

6 months ago

1.1.0

6 months ago

1.1.5

6 months ago

1.1.4

6 months ago

1.1.3

6 months ago

1.4.0

6 months ago

1.1.2

6 months ago

1.3.0

6 months ago

1.0.1

1 year ago

1.0.0

1 year ago