ykushjs
Node.js module for Yepkit Ykush USB switch. Based on ykushcmd.
Supported modules
Requirements
- linux, win64 or macos
- node 10 or 12
linux
-
libusb:
sudo apt install -y libusb-1.0-0
-
udev rules to be able to use ykush without root access
Here is simple udev rule installation script. To install it just run:
curl -sL https://github.com/OpenTMI/ykushjs/raw/master/bin/linux/install_udev.sh | sudo bash -
API
{ const Ykush Ykushxs = ; // ykush let listOfSerialNumbers = await Ykush; const ykush = listOfSerialNumbers0; await ykush; await ykush; await ykush; await ykush; console; // ykushxs listOfSerialNumbers = await Ykushxs; const ykushxs = listOfSerialNumbers0; await ykushxs; await ykushxs; // ykush3 listOfSerialNumbers = await Ykush3; const ykush3 = listOfSerialNumbers0; await ykush3; await ykush3; await ykush3; await ykush3 await ykush3 await ykush3 await ykush3 };