@scanly/node
v2.1.0
Published
Node.js local barcode decoding runtime and image loading for Scanly SDK
Maintainers
Readme
@scanly/node
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.
npm install @scanly/nodeimport { createNodeCaptureRouter, loadNormalizedFrameFromPath } from "@scanly/node";
const router = createNodeCaptureRouter({ formats: ["qr_code", "data_matrix"] });
const frame = await loadNormalizedFrameFromPath("label.png");
const outcome = await router.scan(frame);
if (outcome.ok) console.log(outcome.results);
await router.dispose();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.
This is the standard public Node package. Lower-level pixel-buffer and industrial recovery helpers are advanced APIs.
Version: 2.1.0 · Node usage
