
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@kano/devices-sdk
Advanced tools
Allows the detection and comunication with Kano devices.
This SDK aims to be platform independant as it doesn't implement any Bluetooth, Wi-FI or serial communication. Instead it provides classes expecting a mixin for a BLEDevice/SerialDevice/WiFIDevice to be provided.
Some platforms are already supported and available in the platforms
directory.
Bluetooth communication is supported in a nodejs environment using the modules noble
or noble-uwp
. These modules will need to be installed in your project.
Bluetooth communication is supported in a cordova environment using the plugin cordova-plugin-bluetoothle.
import Devices from '../kano-devices/sdk/kano-devices-sdk.js';
// Pltform specific bluetooth watcher and device mixin
import Watcher from './ble-watcher.js';
import BLEDeviceMixin from './ble-device.js';
const DevicesManager = new Devices({
bluetooth: {
watcher: new Watcher(),
deviceMixin: BLEDeviceMixin,
},
});
export default DevicesManager;
Example of a mixin for the BLEDevice:
// Return a function that will receive the Device class. It needs to extends it, implement the bluetooth methods and return the BLEDevice class
const BLEDeviceMixin = (Device) => {
class BLEDevice extends Device {
// Will receive the device object the watcher found
constructor(device) {
super();
this.type = 'ble-device';
// Do something with the device object
}
// Implement here the methods
}
return BLEDevice;
};
export default BLEDeviceMixin;
A BLEDevice must track the state of its connection following this State Machine Diagram:
FAQs
Allows the detection and comunication with Kano devices.
The npm package @kano/devices-sdk receives a total of 1 weekly downloads. As such, @kano/devices-sdk popularity was classified as not popular.
We found that @kano/devices-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.