New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

barcode-reader-zbar-webassembly

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

barcode-reader-zbar-webassembly

Barcode reader zbar webassembly

latest
Source
npmnpm
Version
2.0.2
Version published
Weekly downloads
1
-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

Barcode Read - Ts and Webassembly

Build Lint Test

Barcode reader written in Ts and using webassembly. In addition, it calculates the check digit as well.

Run build.sh to build a docker and update the webassembly.

Demo

Upload Largest Files - example

https://emirdeliz.github.io/barcode-reader-zbar-webassembly/

How to use?

Added the static files (barcode-reader.js and barcode-reader.wasm) on the server. And then use the code below.

const result = BarcodeReader.readBarcodeFromStack({
  file,
});

or

const result = BarcodeReader.readBarcode({
  file,
});
About the methods:
MethodDescription
readBarcodeFromStackThis method receives a ReadBarcodeProps and inserts the request on the stack of requests. This can be utils when you make multiple barcodes reads at the same.
readBarcodeThis method receives a ReadBarcodeProps and makes a simple read.
About the parameters ReadBarcodeProps:
PropTypeDescription
file (optional)booleanThe file related to pdf file.
scale (optional)booleanThe scale or zoom applied on the pdf document before the search barcode.
sequenceNum (optional)NumberThe sequence number of the image when working with multiple barcodes.
password (optional)StringThe password to open the pdf file.

FAQs

Package last updated on 21 Nov 2023

Related posts