{"id":48796986,"url":"https://github.com/psmodule/lua","last_synced_at":"2026-04-16T08:01:27.649Z","repository":{"id":351130979,"uuid":"1208427674","full_name":"PSModule/Lua","owner":"PSModule","description":"A PowerShell module for converting between PowerShell objects and Lua table notation","archived":false,"fork":false,"pushed_at":"2026-04-13T22:41:41.000Z","size":79,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-14T00:36:49.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/PSModule.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["MariusStorhaug"],"patreon":"MariusStorhaug","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://www.paypal.me/MariusStorhaug"]}},"created_at":"2026-04-12T09:08:25.000Z","updated_at":"2026-04-13T17:37:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/PSModule/Lua","commit_stats":null,"previous_names":["psmodule/lua"],"tags_count":7,"template":false,"template_full_name":"PSModule/Template-PSModule","purl":"pkg:github/PSModule/Lua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSModule%2FLua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSModule%2FLua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSModule%2FLua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSModule%2FLua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PSModule","download_url":"https://codeload.github.com/PSModule/Lua/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PSModule%2FLua/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31876852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-14T00:03:29.407Z","updated_at":"2026-04-16T08:01:27.642Z","avatar_url":"https://github.com/PSModule.png","language":"PowerShell","funding_links":["https://github.com/sponsors/MariusStorhaug","https://patreon.com/MariusStorhaug","https://www.paypal.me/MariusStorhaug"],"categories":[],"sub_categories":[],"readme":"# Lua\n\nA PowerShell module for converting between PowerShell objects and Lua table notation.\n\n## Prerequisites\n\nThis uses the following external resources:\n\n- The [PSModule framework](https://github.com/PSModule/Process-PSModule) for building, testing and publishing the module.\n\n## Installation\n\nTo install the module from the PowerShell Gallery, you can use the following command:\n\n```powershell\nInstall-PSResource -Name Lua\nImport-Module -Name Lua\n```\n\n## Usage\n\nHere is a list of examples that are typical use cases for the module.\n\n### Example 1: Convert a PowerShell hashtable to Lua\n\n```powershell\n@{ name = \"ElvUI\"; version = \"13.74\"; enabled = $true } | ConvertTo-Lua\n\n{\n    name = \"ElvUI\",\n    version = \"13.74\",\n    enabled = true\n}\n```\n\n### Example 2: Convert a Lua table string to a PowerShell object\n\n```powershell\n$lua = '{ name = \"ElvUI\", version = \"13.74\", enabled = true }'\n$config = $lua | ConvertFrom-Lua\n$config.name     # ElvUI\n$config.enabled  # True\n```\n\n### Example 3: Read a Lua file and convert to PowerShell\n\n```powershell\n$luaContent = Get-Content -Path 'config.lua' -Raw\n$config = ConvertFrom-Lua -InputObject $luaContent\n$config.unitframes.playerWidth  # 270\n```\n\n### Example 4: Convert a PowerShell object to compressed Lua\n\n```powershell\n@(1, 2, 3) | ConvertTo-Lua -Compress\n\n{1,2,3}\n```\n\n### Example 5: Round-trip JSON to Lua\n\n```powershell\n$data = Get-Content -Path 'settings.json' -Raw | ConvertFrom-Json\n$luaOutput = $data | ConvertTo-Lua\n$luaOutput | Set-Content -Path 'settings.lua'\n```\n\n### Example 6: Convert Lua to PSCustomObject\n\n```powershell\n$result = '{ server = \"localhost\", port = 8080 }' | ConvertFrom-Lua\n$result.server  # localhost\n$result.port    # 8080\n```\n\n### Find more examples\n\nTo find more examples of how to use the module, please refer to the [examples](examples) folder.\n\nAlternatively, you can use `Get-Command -Module 'Lua'` to find commands available in the module.\nTo find examples of each command, use `Get-Help -Examples 'CommandName'`.\n\n## Documentation\n\nFor detailed documentation on each function, use the built-in help system:\n\n```powershell\nGet-Help ConvertTo-Lua -Full\nGet-Help ConvertFrom-Lua -Full\n```\n\n## Contributing\n\nCoder or not, you can contribute to the project! We welcome all contributions.\n\n### For users\n\nIf you don't code, you still sit on valuable information that can make this project even better. If you experience that the\nproduct does unexpected things, throw errors or is missing functionality, you can help by submitting bugs and feature requests.\nPlease see the issues tab on this project and submit a new issue that matches your needs.\n\n### For developers\n\nIf you do code, we'd love to have your contributions. Please read the [Contribution guidelines](CONTRIBUTING.md) for more information.\nYou can either help by picking up an existing issue or submit a new one if you have an idea for a new feature or improvement.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsmodule%2Flua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsmodule%2Flua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsmodule%2Flua/lists"}