
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@scandit/web-barcode-link
Advanced tools
Scandit's Barcode Link SDK enables seamless barcode scanning between a desktop and a mobile device.
npm install @scandit/web-barcode-link
import { BarcodeLink, BarcodeLinkMode } from "@scandit/web-barcode-link";
const barcodeLink = BarcodeLink.forLicenseKey("YOUR_LICENSE_KEY")
.setBarcodeLinkMode(BarcodeLinkMode.SingleScanning)
.addListener({
onCapture(barcodes, finished) {
console.log("Scanned:", barcodes);
},
});
await barcodeLink.initialize();
Main class for barcode scanning functionality.
import { BarcodeLink } from "@scandit/web-barcode-link";
const barcodeLink = BarcodeLink.forLicenseKey("YOUR_LICENSE_KEY")
.setSymbologies({
/* symbology settings */
})
.setBarcodeRegexValidation(/pattern/)
.setPlatform(BarcodeLinkPlatform.Web)
.setListBehavior(BarcodeLinkListBehavior.Unique)
.addListener({
onCapture(barcodes, finished) {
/* ... */
},
onCancel() {
/* ... */
}, // Only available in the ui flow
onDeviceConnected() {
/* ... */
}, // Only available in the uiless flow
onDeviceDisconnected() {
/* ... */
}, // Only available in the uiless flow
});
Controls how scanning behaves.
import { BarcodeLinkMode } from "@scandit/web-barcode-link";
barcodeLink.setBarcodeLinkMode(BarcodeLinkMode.SingleScanning);
// Available modes:
BarcodeLinkMode.SingleScanning; // Scan a single barcode and finish
BarcodeLinkMode.ContinuousScanning; // Continuously scan barcodes
BarcodeLinkMode.SingleListBuilding; // Build a list of barcodes and finish
BarcodeLinkMode.ContinuousListBuilding; // Continuously build lists of barcodes
Controls how barcodes are collected when using list building modes.
import { BarcodeLinkListBehavior } from "@scandit/web-barcode-link";
barcodeLink.setListBehavior(BarcodeLinkListBehavior.Unique);
// Available behaviors:
BarcodeLinkListBehavior.Unique; // Each barcode can only appear once in the list
BarcodeLinkListBehavior.Count; // Keep track of how many times each barcode is scanned
Specifies the platform type for the scanning device.
import { BarcodeLinkPlatform } from "@scandit/web-barcode-link";
barcodeLink.setPlatform(BarcodeLinkPlatform.Web);
// Available platforms:
BarcodeLinkPlatform.Express; // Launch the Scandit Express app when scanning the QR code
BarcodeLinkPlatform.Web; // Launch a new browser tab with the Scandit Web SDK when scanning the QR code
Imported from @scandit/web-datacapture-barcode
, defines supported barcode types.
import { BarcodeLinkSymbology } from "@scandit/web-barcode-link";
barcodeLink.setSymbologies({
[BarcodeLinkSymbology.Ean13Upca]: { enabled: true },
});
Default flow implementation with built-in UI.
import { BarcodeLinkUiFlow } from "@scandit/web-barcode-link";
await barcodeLink.initialize(new BarcodeLinkUiFlow());
Headless flow implementation that returns QR code data.
import { BarcodeLinkUilessFlow } from "@scandit/web-barcode-link";
const qrCode = await barcodeLink.initialize(new BarcodeLinkUilessFlow());
// qrCode: { href: string, src: string }
Requires a valid Scandit license key.
FAQs
The Scandit Web Barcode Link package
The npm package @scandit/web-barcode-link receives a total of 81 weekly downloads. As such, @scandit/web-barcode-link popularity was classified as not popular.
We found that @scandit/web-barcode-link demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.