A WebAssembly build of the C/C++ ZBar barcode scanning library, providing fast and portable barcode recognition (including QRCode, EAN13, CODE128, etc.) for browsers and Node.js. Current stable version is 2.1.1. Released irregularly, maintained on GitHub. Key differentiator: leverages native ZBar performance via WebAssembly, offering a simple JavaScript API for scanning barcodes from ImageData.
npm install zbar.wasmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Scans a barcode from an image URL using Node.js canvas and prints type and decoded data.
Add rule for zbar.wasm.bin: { test: /\.bin$/, use: 'file-loader' }Serve .wasm files with Content-Type: application/wasm
Replace import zbar from 'zbar.wasm' with import { scanImageData } from 'zbar.wasm'Add file-loader rule for /zbar\.wasm\.bin$/ in webpack config
Ensure server sends application/wasm for .wasm files
No dependency data recorded yet.