{"id":19509262,"url":"https://github.com/opentmi/ykushjs","last_synced_at":"2026-05-15T06:38:45.431Z","repository":{"id":36352434,"uuid":"213153167","full_name":"OpenTMI/ykushjs","owner":"OpenTMI","description":"Yepkit Ykush module","archived":false,"fork":false,"pushed_at":"2022-12-30T19:15:50.000Z","size":794,"stargazers_count":0,"open_issues_count":11,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-27T04:41:41.880Z","etag":null,"topics":["test-automation","usb-devices","usb-switch","yepkit","ykush"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenTMI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-06T11:05:23.000Z","updated_at":"2021-04-28T19:10:35.000Z","dependencies_parsed_at":"2023-01-17T01:30:38.718Z","dependency_job_id":null,"html_url":"https://github.com/OpenTMI/ykushjs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTMI%2Fykushjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTMI%2Fykushjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTMI%2Fykushjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTMI%2Fykushjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenTMI","download_url":"https://codeload.github.com/OpenTMI/ykushjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240761095,"owners_count":19853254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["test-automation","usb-devices","usb-switch","yepkit","ykush"],"created_at":"2024-11-10T23:11:30.145Z","updated_at":"2026-05-15T06:38:45.394Z","avatar_url":"https://github.com/OpenTMI.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ykushjs\nNode.js module for [Yepkit Ykush USB switch](https://www.yepkit.com/products/ykush).\nBased on [ykushcmd](https://github.com/Yepkit/ykush).\n\n## Supported modules\n\n* [ykush](https://www.yepkit.com/products/ykush)\n* [ykushxs](https://www.yepkit.com/product/300115/YKUSHXS)\n* [ykush3](https://www.yepkit.com/product/300110/YKUSH3)\n\n\n## Requirements\n* linux, win64 or macos\n* node 10 or 12\n\n**linux**\n* libusb: `sudo apt install -y libusb-1.0-0`\n* udev rules to be able to use ykush without root access\n\n    [Here](bin/linux/install_udev.sh) is simple udev rule installation script. To install it just run:\n    ```\n    curl -sL https://github.com/OpenTMI/ykushjs/raw/master/bin/linux/install_udev.sh | sudo bash -\n    ```\n\n\n## API\n\n```js\n(() =\u003e async function() {\n    const {Ykush, Ykushxs} = require('Ykush');\n    \n    // ykush\n    let listOfSerialNumbers = await Ykush.list();\n    const ykush = new Ykush(listOfSerialNumbers[0]);\n    await ykush.powerOn({channel: 1});\n    await ykush.powerOff({channel: 1});\n    await ykush.powerAllOn();\n    await ykush.powerAllOff();\n    console.log(ykush.serialNumber);\n    \n    // ykushxs\n    listOfSerialNumbers = await Ykushxs.list();\n    const ykushxs = new Ykushxs(listOfSerialNumbers[0]);\n    await ykushxs.powerOn();\n    await ykushxs.powerOff();\n    \n    // ykush3\n    listOfSerialNumbers = await Ykush3.list();\n    const ykush3 = new Ykushxs(listOfSerialNumbers[0]);\n    await ykush3.powerOn({channel: 1});\n    await ykush3.powerOff({channel: 1});\n    await ykush3.reset();\n    await ykush3.switchOn5V()\n    await ykush3.switchOff5V()\n    await ykush3.writeGPIO({gpio: 1, state: 0})\n    await ykush3.writeGPIO({gpio: 1, state: 1})\n\n})();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentmi%2Fykushjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentmi%2Fykushjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentmi%2Fykushjs/lists"}