{"id":27082305,"url":"https://github.com/tst2005/lua-vararg","last_synced_at":"2025-06-24T06:08:28.047Z","repository":{"id":149828641,"uuid":"174530159","full_name":"tst2005/lua-vararg","owner":"tst2005","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-08T16:54:37.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T02:41:12.265Z","etag":null,"topics":["lua","to-be-released"],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/tst2005.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-08T11:59:13.000Z","updated_at":"2019-03-13T09:53:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"b8bee271-bd57-4383-83dd-ea694d182422","html_url":"https://github.com/tst2005/lua-vararg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tst2005/lua-vararg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tst2005%2Flua-vararg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tst2005%2Flua-vararg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tst2005%2Flua-vararg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tst2005%2Flua-vararg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tst2005","download_url":"https://codeload.github.com/tst2005/lua-vararg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tst2005%2Flua-vararg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261618130,"owners_count":23185096,"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","to-be-released"],"created_at":"2025-04-06T02:40:24.661Z","updated_at":"2025-06-24T06:08:28.040Z","avatar_url":"https://github.com/tst2005.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lua-vararg\n\nA simple way to pack/unpack variable arguments.\nThe main feature is to correctly deals with nil values.\n\n```lua\nlocal vararg = require \"vararg\"\n\nlocal function pack(...)\n\treturn {...}\nend\n\nprint(table.unpack(pack(1, 2, nil, 3, nil)))\t\t-- 1       2\nprint(vararg.unpack(vararg.pack(1, 2, nil, 3, nil)))\t-- 1       2       nil     3       nil\nprint(vararg(1, 2, nil, 3, nil):unpack())\t\t-- 1       2       nil     3       nil\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftst2005%2Flua-vararg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftst2005%2Flua-vararg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftst2005%2Flua-vararg/lists"}