Use this reference when you want the closest existing Node pattern before writing new SDK code or when updating docs, snippets, and examples.
example.js: compact generate-and-scan flow that saves the generatedBufferto disk and then scans it back.README.md: install instructions plus the same package-consumer flow in quick-start form.snippets/manualFetchToken.js: manual OAuth client-credentials token fetch usingaxiosandqsinstead of the SDK.
snippets/generate/save/generateGet.js: simplegenerate()and save-to-file flow.snippets/generate/save/generateBody.js:generateBody()withGenerateParams.snippets/generate/save/generateMultipart.js: multipart generation flow.snippets/generate/set-text/*:EncodeDataandEncodeDataTypeexamples.snippets/generate/set-size/*: width, height, resolution, and units examples.snippets/generate/set-colorscheme/*: foreground and background color examples.snippets/generate/appearance/*: richerBarcodeImageParamsexamples.
snippets/read/set-source/recognizeGet.js: recognize from a public URL.snippets/read/set-source/recognizeMultipart.js: recognize from a localBuffer.snippets/read/set-source/recognizeBody.js: recognize from base64 bytes.snippets/read/set-source/scanGet.js: auto-scan from a public URL.snippets/read/set-source/scanMultipart.js: auto-scan from a localBuffer.snippets/read/set-source/scanBody.js: auto-scan from base64 bytes.snippets/read/set-target-types/*: choosing a singleDecodeBarcodeTypeor a list forRecognizeBase64Request.barcodeTypes.snippets/read/set-quality/*:RecognitionModeexamples.snippets/read/set-image-kind/*:RecognitionImageKindexamples.
test/end-to-end.test.ts: generate a barcodeBuffer, then scan that same buffer end to end.test/barcodeGenerate.test.ts: generate via GET, body, and multipart variants.test/barcodeRecognize.test.ts: recognize via multipart, base64 body, and public URL.test/barcodeScan.test.ts: scan via multipart, base64 body, and public URL.test/configuration.test.ts: configuration defaults plus JSON and environment-variable loading.test/errorResponse.test.ts: parsed API error behavior througherrorResponse.test/apiClient.test.ts:ApiClientsuccess, HTTP failure, and network-failure behavior.test/multipart.test.ts: multipart boundary and header generation if transport code changes.