Socket
Socket
Sign inDemoInstall

ng-barcode-detector

Package Overview
Dependencies
5
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ng-barcode-detector

A library using the Barcode Detection API implemented in Chrome 83.


Version published
Weekly downloads
6
decreased by-80%
Maintainers
1
Install size
189 kB
Created
Weekly downloads
 

Readme

Source

ng-barcode-detector

A library using the Barcode Detection API implemented in Chrome 83.

The Barcode Detection API is a subset of the Shape Detection API which provides the ability to detect and decode barcodes in an image provided by script. The image may come from any type of image buffer source such as an image, video or canvas tag.

Some native platforms include built-in libraries for performing text detection and optical character recognition (OCR) in images. The availability of these libraries means that developers do not need to include a large third party library.

Demo

Installation

npm install --save ng-barcode-detector

Usage

import { NgBarcodeDetectorModule } from 'ng-barcode-detector';

@NgModule({
  imports: [NgBarcodeDetectorModule],
})
export class AppModule {}
<ng-barcode-detector (detect)="onDetect($event)"></ng-barcode-detector>
import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css'],
})
export class AppComponent {
  public onDetect(result: string): void {
    alert(result);
  }
}

Keywords

FAQs

Last updated on 26 Feb 2021

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