{"id":24987710,"url":"https://github.com/soniex2/lua-using","last_synced_at":"2025-03-29T11:17:01.621Z","repository":{"id":150583909,"uuid":"46133025","full_name":"SoniEx2/lua-using","owner":"SoniEx2","description":"using() function for Lua.","archived":false,"fork":false,"pushed_at":"2015-11-13T17:01:13.000Z","size":0,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T11:48:29.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/SoniEx2.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":"2015-11-13T16:20:04.000Z","updated_at":"2015-11-19T07:38:37.000Z","dependencies_parsed_at":"2023-04-12T18:32:15.156Z","dependency_job_id":null,"html_url":"https://github.com/SoniEx2/lua-using","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoniEx2%2Flua-using","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoniEx2%2Flua-using/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoniEx2%2Flua-using/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoniEx2%2Flua-using/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SoniEx2","download_url":"https://codeload.github.com/SoniEx2/lua-using/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174607,"owners_count":20735417,"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-04T11:48:35.247Z","updated_at":"2025-03-29T11:17:01.592Z","avatar_url":"https://github.com/SoniEx2.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lua-using\nusing() function for Lua.\n\n## Examples\n\nProgram:\n```lua\nlocal using = require\"using\".using\n\nlocal mt = { __gc = print }\n\nlocal function example()\n  using(setmetatable({}, mt), function(file, func)\n    error(\"the file should get cleaned up\")\n  end)\nend\n\nxpcall(example, print)\nprint \"did we cleanup? yes!\"\n```\n\nOutput:\n```\ntable: 0xe5d010\n./using.lua:11: example.lua:7: the file should get cleaned up\ndid we cleanup? yes!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoniex2%2Flua-using","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoniex2%2Flua-using","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoniex2%2Flua-using/lists"}