@scanly/node 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.
Files changed (2) hide show
  1. package/README.md +21 -1
  2. package/package.json +40 -30
package/README.md CHANGED
@@ -1,3 +1,23 @@
1
1
  # @scanly/node
2
2
 
3
- Node-only image loading and a convenience Router composition. `sharp` is isolated here and never enters core or browser dependency graphs.
3
+ Node.js image loading and default local engine composition for Scanly SDK v2.1.0. `sharp` is isolated here and never enters Core or Browser dependency graphs.
4
+
5
+ ```bash
6
+ npm install @scanly/node
7
+ ```
8
+
9
+ ```js
10
+ import { createNodeCaptureRouter, loadNormalizedFrameFromPath } from "@scanly/node";
11
+
12
+ const router = createNodeCaptureRouter({ formats: ["qr_code", "data_matrix"] });
13
+ const frame = await loadNormalizedFrameFromPath("label.png");
14
+ const outcome = await router.scan(frame);
15
+ if (outcome.ok) console.log(outcome.results);
16
+ await router.dispose();
17
+ ```
18
+
19
+ The default composition is jsQR → lazy ZXing-C++ WASM → ZXing-JS. Pass `zxingCppWasm: false` only for a QR-only JavaScript composition. Decoding is local and no image is uploaded.
20
+
21
+ This is the standard public Node package. Lower-level pixel-buffer and industrial recovery helpers are advanced APIs.
22
+
23
+ Version: 2.1.0 · [Node usage](https://github.com/Yangjunjie-Lin/Scanly/blob/main/docs/sdk/usage.md)
package/package.json CHANGED
@@ -1,30 +1,40 @@
1
- {
2
- "name": "@scanly/node",
3
- "version": "2.0.0",
4
- "description": "Node-only Scanly image loading and configured capture runtime",
5
- "license": "MIT",
6
- "type": "module",
7
- "sideEffects": false,
8
- "main": "./dist/index.js",
9
- "types": "./dist/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js"
14
- }
15
- },
16
- "files": [
17
- "dist",
18
- "README.md"
19
- ],
20
- "scripts": {
21
- "build": "tsc -p tsconfig.build.json"
22
- },
23
- "dependencies": {
24
- "@scanly/core": "2.0.0",
25
- "@scanly/engine-jsqr": "2.0.0",
26
- "@scanly/engine-zxing-cpp-wasm": "2.0.0",
27
- "@scanly/engine-zxing-js": "2.0.0",
28
- "sharp": "^0.35.3"
29
- }
30
- }
1
+ {
2
+ "name": "@scanly/node",
3
+ "version": "2.1.0",
4
+ "description": "Node.js local barcode decoding runtime and image loading for Scanly SDK",
5
+ "keywords": ["barcode", "qr-code", "scanner", "nodejs", "wasm", "scanly"],
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Yangjunjie-Lin/Scanly.git",
9
+ "directory": "packages/node"
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
+ "@scanly/engine-jsqr": "2.1.0",
36
+ "@scanly/engine-zxing-cpp-wasm": "2.1.0",
37
+ "@scanly/engine-zxing-js": "2.1.0",
38
+ "sharp": "^0.35.3"
39
+ }
40
+ }