
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
cordova-bluebird-api
Advanced tools
Plugin to interact with the BlueBird ruggedized devices' Barcode Scanners and Magnetic Stripe Readers. It has been tested on a BP30
This is a Cordova/Phonegap plugin to interact with the BlueBird ruggedized devices' Barcode Scanners and Magnetic Stripe Readers. It has been tested on a BP30, with soon to be testing on a BP70.
=============
This plugin is compatible with plugman. To install, run the following from your project command line:
$ cordova plugin add https://github.com/BlueFletch/cordova-bluebird-api.git
==============
function loadBarcode(barcode) {
console.log("barcode read : " + barcode);
//TODO: handle barcode read
}
function handleMagstripeTracks(tracks) {
console.log("read magstripe value : " + JSON.stringify(tracks));
//read track 1
var track1 = tracks[0].split('^');
if (track1.length == 1) {
window.magstripe.read(function(){});
return;
}
var cc = {
number : track1[0].substr(1),
name : track1[1].trim(),
expr : '20' + track1[2].substr(0,2) + '-' + track1[2].substr(2,2)
};
console.log("read credit card " + JSON.stringify(cc));
//TODO: handle magstripe
}
document.addEventListener("deviceready", function(){
if (window.bluebirdBarcodeScanner) {
console.log("initializing barcode scanner")
bluebirdBarcodeScanner.register(loadBarcode, function (argument) {
console.log("failed to register barcode scanner");
});
}
if (window.bluebirdMagstripe) {
console.log("initializing magstripe")
bluebirdMagstripe.register(handleMagstripeTracks, function (argument) {
console.log("failed to register for mag stripe reader");
});
}
}, false);
=============
============== Copyright 2014 BlueFletch Mobile
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
FAQs
Plugin to interact with the BlueBird ruggedized devices' Barcode Scanners and Magnetic Stripe Readers. It has been tested on a BP30
The npm package cordova-bluebird-api receives a total of 1 weekly downloads. As such, cordova-bluebird-api popularity was classified as not popular.
We found that cordova-bluebird-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.