{"id":16131459,"url":"https://github.com/thislight/x.lua","last_synced_at":"2025-04-06T14:32:29.481Z","repository":{"id":171529410,"uuid":"290475280","full_name":"thislight/x.lua","owner":"thislight","description":"Lua launcher with package redirecting","archived":false,"fork":false,"pushed_at":"2020-08-26T13:05:03.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-12T20:37:51.174Z","etag":null,"topics":["lua","package"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thislight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-26T11:14:32.000Z","updated_at":"2020-08-26T13:05:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"916d34d5-faff-4f4e-8065-8e53dc4eff58","html_url":"https://github.com/thislight/x.lua","commit_stats":null,"previous_names":["thislight/x.lua"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thislight%2Fx.lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thislight%2Fx.lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thislight%2Fx.lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thislight%2Fx.lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thislight","download_url":"https://codeload.github.com/thislight/x.lua/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247495778,"owners_count":20948107,"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":["lua","package"],"created_at":"2024-10-09T22:25:15.092Z","updated_at":"2025-04-06T14:32:29.476Z","avatar_url":"https://github.com/thislight.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x.lua\nLua launcher with package redirecting.\n\n## Usage\n### Basic\nYou may add `run` permission to x.lua for shorter call (`chmod +x x.lua`).\n````\n$ ./x.lua --help\nx.lua                    start REPL (by lua-repl)\nx.lua \u003clua_file_path\u003e    run a script with x.lua's features\nx.lua --show-debug-info  show debug infomation\nx.lua --help             print this message\n````\n\n### REPL\nx.lua made use of [lua-repl](https://github.com/hoelzro/lua-repl) for a pretty REPL. If you start REPL without lua-repl installed, x.lua will remind you.\nYou can install lua-repl by luarocks: `luarocks install luarepl`.\n\n### Package Redirecting\nx.lua can add a custom package searcher which redirect some specific package name to given path. Just add a file `.packages` like:\n````\nrepl=/usr/local/lib/lua/5.3/repl/\nluasocket=/usr/local/lib/lua/5.3/luasocket/\n````\nThen tell x.lua when start program:\n````\n$ x.lua some.lua --packages=.packages\n````\nIn `some.lua`, require these package like:\n````lua\nrequire('@repl')\nrequire('@luasocket/socket')\n````\nIf you rename `.packages` to `.lua_packages`, you can call x.lua without `--packages` option.\n````\n$ x.lua some.lua\n````\n\n## License\nGNU General Public License, version 3 or later.\n\n    x.lua - Lua launcher with package redirecting support\n    Copyright (C) 2020 thisLight\n    \n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    any later version.\n    \n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n\nThis project made use of some code from [lua-repl](https://github.com/hoelzro/lua-repl):\n\n    Copyright (c) 2011-2015 Rob Hoelz \u003crob@hoelz.ro\u003e\n    \n    Permission is hereby granted, free of charge, to any person obtaining a copy of\n    this software and associated documentation files (the \"Software\"), to deal in\n    the Software without restriction, including without limitation the rights to\n    use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n    the Software, and to permit persons to whom the Software is furnished to do so,\n    subject to the following conditions:\n    \n    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n    THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n    FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n    COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n    IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n    CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\u003e You also should add the notice above from lua-repl if you include x.lua in your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthislight%2Fx.lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthislight%2Fx.lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthislight%2Fx.lua/lists"}