Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
cordova-plugin-zebra-scanner-spectrum
Advanced tools
Cordova Zebra Scanner Plugin for the built-in barcodes scanner.
This plugin defines an window.plugins.zebra.scanner
object which provides an API for interacting with scanner hardware scanner on Zebra devices.
The window.plugins.zebra.scanner object is not available until after the deviceready
event.
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
console.log(window.plugins.zebra.scanner);
}
This plugin is based on https://github.com/darryncampbell/EnterpriseBarcodePoC by Darryn Campbell
Cordova: cordova plugin add cordova-plugin-zebra-scanner-spectrum
Boolean which is true
when the EMDK scanner is available on the device.
if (window.plugins.zebra.scanner.available) {
console.log("EMDK is available");
);
Enables the barcode scanner hardware and the associated trigger, so pressing the hardware trigger will initiate a scan.
window.plugins.zebra.scanner.startHardRead(enableSuccess, enableFailure);
window.plugins.zebra.scanner.startHardRead(
function (scannedObj) {
console.log("Scan data: " + scannedObj.data);
console.log("Scan symbology: " + scannedObj.type);
console.log("Scan time: " + scannedObj.timestamp);
},
function (status) {
console.log("Scanner failure: " + status.message);
}
);
Enables the barcode scanner hardware and the associated trigger, it will start scanning immediately without the need of a hardware trigger.
window.plugins.zebra.scanner.startSoftRead(enableSuccess, enableFailure);
window.plugins.zebra.scanner.startSoftRead(
function (scannedObj) {
console.log("Scan data: " + scannedObj.data);
console.log("Scan symbology: " + scannedObj.type);
console.log("Scan time: " + scannedObj.timestamp);
},
function (status) {
console.log("Scanner failure: " + status.message);
}
);
Stops the currently active scan.
window.plugins.zebra.scanner.stopReading();
FAQs
Cordova Zebra Scanner Plugin for the built-in barcodes scanner.
The npm package cordova-plugin-zebra-scanner-spectrum receives a total of 2 weekly downloads. As such, cordova-plugin-zebra-scanner-spectrum popularity was classified as not popular.
We found that cordova-plugin-zebra-scanner-spectrum 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.