A WebAssembly build of the C/C++ ZBar barcode reader
npm install @undecaf/zbar-wasm!Open issues
!Vulnerabilities
!Total downloads
!Hits/month
!License
This project was forked from ZBar.wasm,
a WebAssembly build
of the ZBar Bar Code Reader written in C/C++.
+ Provided as minified ES module, CommonJS module and plain script
+ Runs in modern browsers, in Node.js and also in workers
+ Deployment size approx. 330 kByte
+ Supports Code-39, Code-93, Code-128, Codabar, Databar/Expanded,
EAN/GTIN-5/8/13, ISBN-10/13, ISBN-13+2, ISBN-13+5, ITF (Interleaved 2 of 5), QR Code, UPC-A/E.
+ Detects multiple barcodes per frame, also with different types
+ Barcodes may be oriented horizontally or vertically
+ Scans ImageData and
RGB/grayscale ArrayBuffer objects
+ Outperforms pure JavaScript barcode scanners
:warning: zbar-wasm versions 0.10 and above contain breaking changes with respect to version 0.9, please refer to section Bundling/deploying zbar-wasm.
+ A simple example: on GitHub
(source code),
on CodePen
+ A polyfill for the BarcodeDetector Web API:
on GitHub
(source code
with build scripts for Rollup and esbuild),
on CodePen
An example that scans a static image file:
``html

`
Almost identical to the snippet above, just replace the lines
`html
⁝