2.0.2 • Published 6 months ago

barcode-reader-zbar-webassembly v2.0.2

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

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

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.
2.0.2

6 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago