Socket
Socket
Sign inDemoInstall

ngx-scanner-qrcode

Package Overview
Dependencies
5
Maintainers
1
Versions
148
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ngx-scanner-qrcode

This library is built to provide a solution scanner QR code. This library takes in raw images and will locate, extract and parse any QR code found within.


Version published
Weekly downloads
4.2K
decreased by-12.26%
Maintainers
1
Install size
4.65 MB
Created
Weekly downloads
 

Readme

Source

ngx-scanner-qrcode

This library is built to provide a solution scanner QR code.
This library takes in raw images and will locate, extract and parse any QR code found within.
This demo stackblitz.

Logo

Installation

Install ngx-scanner-qrcode from npm:

npm install ngx-scanner-qrcode --save

Add wanted package to NgModule imports:

import { NgxScannerQrcodeModule } from 'ngx-scanner-qrcode';
@NgModule({
    imports: [
        NgxScannerQrcodeModule,
    ]
})

In the Component:

<ngx-scanner-qrcode #action="scanner" [height]="200" [width]="300" (data)="output = $event"></ngx-scanner-qrcode>
<button (click)="action.start()">Start</button>
<button (click)="action.stop()">Stop</button>
<span>{{output}}</span>

API Documentation

Input
FieldDescriptionTypeDefault
heightheight of canvasnumber300
widthwidth of canvasnumber400
lineline frame qrcodenumber3
colorcolor of linestring#008000
Ouput
FieldDescriptionTypeDefault
datadata of qrcodestringnull
messagedetectedstringnull
loadingLoading videobooleannull
Function
FieldDescriptionTypeDefault
startActive camerafunctionnull
stopInactive camerafunctionnull

Support versions Angular >= 8.0.3


Author: DaiDH, Tel: 0845882882

License

MIT License. Copyright (c) 2021 DaiDH

Keywords

FAQs

Last updated on 28 Feb 2022

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