{"id":22426627,"url":"https://github.com/theypsilon/lua-import","last_synced_at":"2025-03-27T06:22:41.419Z","repository":{"id":25658704,"uuid":"29094176","full_name":"theypsilon/lua-import","owner":"theypsilon","description":"library for importing dependencies with a more terse syntax","archived":false,"fork":false,"pushed_at":"2019-10-02T19:44:36.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T11:30:18.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/theypsilon.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}},"created_at":"2015-01-11T14:25:27.000Z","updated_at":"2019-10-02T19:44:47.000Z","dependencies_parsed_at":"2022-07-10T12:16:52.977Z","dependency_job_id":null,"html_url":"https://github.com/theypsilon/lua-import","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/theypsilon%2Flua-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Flua-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Flua-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theypsilon%2Flua-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theypsilon","download_url":"https://codeload.github.com/theypsilon/lua-import/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245792960,"owners_count":20672881,"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":"2024-12-05T19:22:46.976Z","updated_at":"2025-03-27T06:22:41.377Z","avatar_url":"https://github.com/theypsilon.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lua-import\n\nLibrary for importing dependencies with a more terse syntax\n\n## Import usage\n\nOn top of your file:\n\n```lua\nlocal Layer, Graphics, Data; import()\n```\n\nThis code is equivalent to:\n```lua\nlocal Layer = require('Layer')\nlocal Graphics = require('Graphics')\nlocal Data = require('Data')\n```\n\nAdditionally, you can also provide a path on the import, so it will be used in all the requires:\n\n```lua\nlocal Layer, Graphics, Data; import('lib/')\n```\n\nDoes same as:\n\n```lua\nlocal Layer = require('lib/Layer')\nlocal Graphics = require('lib/Graphics')\nlocal Data = require('lib/Data')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheypsilon%2Flua-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheypsilon%2Flua-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheypsilon%2Flua-import/lists"}