{"id":25635039,"url":"https://github.com/software-natives-oss/transferlua","last_synced_at":"2026-06-18T06:30:18.194Z","repository":{"id":57161361,"uuid":"310793381","full_name":"Software-Natives-OSS/transferlua","owner":"Software-Natives-OSS","description":"Node.js module. Wrapper for Indel's LuaTransfer C-Library","archived":false,"fork":false,"pushed_at":"2020-11-13T19:04:29.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T23:17:53.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Software-Natives-OSS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-07T07:42:29.000Z","updated_at":"2020-11-13T19:04:31.000Z","dependencies_parsed_at":"2022-09-03T16:40:27.295Z","dependency_job_id":null,"html_url":"https://github.com/Software-Natives-OSS/transferlua","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Software-Natives-OSS%2Ftransferlua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Software-Natives-OSS%2Ftransferlua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Software-Natives-OSS%2Ftransferlua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Software-Natives-OSS%2Ftransferlua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Software-Natives-OSS","download_url":"https://codeload.github.com/Software-Natives-OSS/transferlua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240245905,"owners_count":19771033,"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":[],"created_at":"2025-02-22T23:17:54.946Z","updated_at":"2026-06-18T06:30:18.020Z","avatar_url":"https://github.com/Software-Natives-OSS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node wrapper for Indel's TransferLua C-Library\n\n[Indel AG's](https://indel.ch) TransferLua is a dynamic library (`.dll`, `.so`) with a C-API that allows downloading Lua scripts to it's real-time contolling systems. This project is a wrapper around that C-API for Node.\n\n## State\n\nI took the \"lean approach\": The basic functionality is in place, but less commonly used features may not yet be. Extending it should be farely easy and everyone's invited to do so.\n\n## Motivation\n\nThe main motivation for this project was to have Node wrapper suitable to be used by VSCode extensions.\n\n## Installation\n\n```sh\nnpm i @softwarenatives/transferlua\n```\n\n## Basic usage\n\nAssuming there is a `helloworld.js` in the current working dir, create something like this:\n\n```js\nconst transferLua = require(\"@softwarenatives/transferlua\");\n \nconst indelTargetName = 'IndelTargetName'; // E.g. \"Net251\"\nconst luaStateName = 'Machine';\nconst options = transferLua.combineOptions(\n    transferLua.OPTION_EXECUTE);\n \nconst transfer = new transferLua.TransferLua(indelTargetName, { force: true });\ntransfer.sendFile('./helloworld.lua', luaStateName, { options: options });\ntransfer.close()\n```\n\n## Supported platforms\n\nThis wrapper should support all platforms on which Indel's library is available. At the time of this writing, these are\n\n- Windows\n- Linux\n\n## TODO\n\nAs mentioned, only the \"thus far required\" functionality is in place. Namely, the following is missing:\n\n- \"Error writer\" callback not yet implemented (thus, the ability to get 'good error reporting' not given yet)\n- Convertion from error codes (uint64) into human readable text is yet missing\n- Test coverage for various options of `sendFile` and `sendChunk` not yet given (and also not manually tested yet)\n- TS types could be improved for the various optional arguments\n\n## Why not in TS?\n\nThis module is so small that I felt to write it in JavaScript rather than TypeScript, although I like the latter more. I feel like the overhead is smaller for JS, since no transpiling, etc. is required.\n\nNote that if someone would convert it to TS, such a contribution would be welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftware-natives-oss%2Ftransferlua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftware-natives-oss%2Ftransferlua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftware-natives-oss%2Ftransferlua/lists"}