Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
cordova-plugin-zebra-scanner-spectrum
Advanced tools
Cordova Zebra Scanner Plugin for the built-in barcodes scanner.
This plugin defines an window.plugins.zebra
object which provides an API for interacting with scanner hardware scanner on Zebra devices.
The window.plugins.zebra object is not available until after the deviceready
event.
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
console.log(window.plugins.zebra);
}
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.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.startHardRead(enableSuccess, enableFailure);
window.plugins.zebra.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.startSoftRead(enableSuccess, enableFailure);
window.plugins.zebra.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.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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.