@scanly/engine-zxing-js 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/package.json +37 -27
package/README.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
# @scanly/engine-zxing-js
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
QR Code engine-contract adapter for `@zxing/library` 0.21.3 in Scanly SDK v2.1.0.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install @scanly/core @scanly/engine-zxing-js
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { CaptureRouter, EngineRegistry } from "@scanly/core";
|
|
11
|
+
import { ZxingJsEngine } from "@scanly/engine-zxing-js";
|
|
12
|
+
|
|
13
|
+
const engines = new EngineRegistry();
|
|
14
|
+
engines.register(new ZxingJsEngine());
|
|
15
|
+
const router = new CaptureRouter({ engines, formats: ["qr_code"] });
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
This adapter intentionally configures the ZXing JavaScript QR reader only. It does not claim additional barcode formats. This is an advanced engine package; Browser and Node already include it as a QR fallback.
|
|
19
|
+
|
|
20
|
+
Version: 2.1.0 · [Engine composition documentation](https://github.com/Yangjunjie-Lin/Scanly/blob/main/docs/sdk/usage.md)
|
package/package.json
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@scanly/engine-zxing-js",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "ZXing JavaScript
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@scanly/engine-zxing-js",
|
|
3
|
+
"version": "2.1.0",
|
|
4
|
+
"description": "QR Code ZXing JavaScript engine plugin for Scanly SDK",
|
|
5
|
+
"keywords": ["barcode", "qr-code", "decoder", "zxing", "scanner", "scanly"],
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/Yangjunjie-Lin/Scanly.git",
|
|
9
|
+
"directory": "engines/zxing-js"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/Yangjunjie-Lin/Scanly#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Yangjunjie-Lin/Scanly/issues"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"sideEffects": false,
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./dist/index.d.ts",
|
|
23
|
+
"import": "./dist/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"README.md"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsc -p tsconfig.build.json"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@scanly/core": "2.1.0",
|
|
35
|
+
"@zxing/library": "0.21.3"
|
|
36
|
+
}
|
|
37
|
+
}
|