@undecaf/zbar-wasm
Advanced tools
Comparing version 0.9.4 to 0.9.5
{ | ||
"name": "@undecaf/zbar-wasm", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"description": "A WebAssembly build of the C/C++ ZBar barcode reader", | ||
@@ -5,0 +5,0 @@ "type": "module", |
# A WebAssembly build of the ZBar Bar Code Reader | ||
![Minified size](https://badgen.net/bundlephobia/min/@undecaf/zbar-wasm) | ||
![Install size](https://badgen.net/packagephobia/install/@undecaf/zbar-wasm) | ||
![Open issues](https://badgen.net/github/open-issues/undecaf/zbar-wasm) | ||
@@ -23,3 +23,3 @@ ![Vulnerabilities](https://snyk.io/test/npm/@undecaf/zbar-wasm/badge.svg) | ||
An example page [is available here](https://undecaf.github.io/zbar-wasm/example/index.html) | ||
An example page [is available here](https://undecaf.github.io/zbar-wasm/example/) | ||
([source code](https://github.com/undecaf/zbar-wasm/tree/master/docs/example)). | ||
@@ -38,3 +38,3 @@ | ||
<body> | ||
<img id="img" crossorigin="anonymous" src="https://github.com/undecaf/zbar-wasm/blob/master/test/img/qr_code.png"> | ||
<img id="img" crossorigin="anonymous" src="https://raw.githubusercontent.com/undecaf/zbar-wasm/master/test/img/qr_code.png"> | ||
<pre id="result"></pre> | ||
@@ -101,2 +101,4 @@ | ||
Using: | ||
`import ... from '@undecaf/zbar-wasm'` pulls the ES module from the package, | ||
@@ -126,3 +128,3 @@ `require('@undecaf/zbar-wasm')` pulls the CommonJS module. | ||
console.log(symbols[0].typeName, symbols[0].decode()); | ||
}) ('https://github.com/undecaf/zbar-wasm/blob/master/test/img/qr_code.png'); | ||
}) ('https://raw.githubusercontent.com/undecaf/zbar-wasm/master/test/img/qr_code.png'); | ||
``` | ||
@@ -141,3 +143,3 @@ | ||
+ `zbar.wasm` must be copied to the directory where the zbar-wasm module/the bundle containing that module is located. | ||
+ It should be served as `applićation/wasm` so that it can be compiled in parallel with being received | ||
+ It should be served as `application/wasm` so that it can be compiled in parallel with being received | ||
by the browser. | ||
@@ -144,0 +146,0 @@ |
508744
212