{"id":16718370,"url":"https://github.com/tsileo/gluarequire2","last_synced_at":"2026-05-19T11:05:32.138Z","repository":{"id":57480201,"uuid":"93990836","full_name":"tsileo/gluarequire2","owner":"tsileo","description":"gluarequire2 provides a way to import file directly from GitHub using GopherLua.","archived":false,"fork":false,"pushed_at":"2020-02-22T09:44:33.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T00:51:36.852Z","etag":null,"topics":["go","lua"],"latest_commit_sha":null,"homepage":"https://a4.io/gluarequire2","language":"Go","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/tsileo.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":"2017-06-11T08:10:23.000Z","updated_at":"2020-02-22T09:44:35.000Z","dependencies_parsed_at":"2022-09-26T17:41:37.998Z","dependency_job_id":null,"html_url":"https://github.com/tsileo/gluarequire2","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/tsileo%2Fgluarequire2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsileo%2Fgluarequire2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsileo%2Fgluarequire2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsileo%2Fgluarequire2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsileo","download_url":"https://codeload.github.com/tsileo/gluarequire2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713419,"owners_count":20335567,"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":["go","lua"],"created_at":"2024-10-12T21:36:37.604Z","updated_at":"2026-05-19T11:05:32.068Z","avatar_url":"https://github.com/tsileo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gluarequire2\n\n[![builds.sr.ht status](https://builds.sr.ht/~tsileo/gluarequire2.svg)](https://builds.sr.ht/~tsileo/gluarequire2?)\n\u0026nbsp; \u0026nbsp;[![Godoc Reference](https://godoc.org/a4.io/gluarequire2?status.svg)](https://godoc.org/a4.io/gluarequire2)\n\ngluarequire2 provides a way to import file directly from GitHub using [GopherLua](https://github.com/yuin/gopher-lua).\n\nFiles are downloaded on the fly via HTTP (and stored in `/tmp`), then `require2` rewrite the imports to the right location.\n\n## Installation\n\n```shell\n$ go get a4.io/gluarequire2\n```\n\n### QuickStart\n\n```go\npackage main\n\nimport (\n\t\"a4.io/gluarequire2\"\n\t\"github.com/yuin/gopher-lua\"\n)\n\nfunc main() {\n\tL := lua.NewState()\n\tdefer L.Close()\n\n\tgluarequire2.NewRequire2Module(gluarequire2.NewRequireFromGitHub(nil)).SetGlobal(L)\n\n\tif err := L.DoString(`\n\n        local mymod = require2('github.com/tsileo/gluarequire2/_tests/testmod')\n\tassert(mymod.return1() == 1)\n\n    `); err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsileo%2Fgluarequire2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsileo%2Fgluarequire2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsileo%2Fgluarequire2/lists"}