{"id":47532549,"url":"https://github.com/Le0Developer/yuepack","last_synced_at":"2026-04-11T16:00:53.767Z","repository":{"id":259736708,"uuid":"879298825","full_name":"Le0Developer/yuepack","owner":"Le0Developer","description":null,"archived":true,"fork":false,"pushed_at":"2024-10-30T11:12:03.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-28T05:43:34.667Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/Le0Developer.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":"2024-10-27T14:45:19.000Z","updated_at":"2024-12-28T12:43:55.000Z","dependencies_parsed_at":"2024-10-27T17:58:34.277Z","dependency_job_id":"bc821659-d7f0-483d-b5c4-f52ee19d9e01","html_url":"https://github.com/Le0Developer/yuepack","commit_stats":null,"previous_names":["le0developer/yuepack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Le0Developer/yuepack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fyuepack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fyuepack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fyuepack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fyuepack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Le0Developer","download_url":"https://codeload.github.com/Le0Developer/yuepack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Le0Developer%2Fyuepack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31686141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"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-03-28T00:01:05.695Z","updated_at":"2026-04-11T16:00:53.762Z","avatar_url":"https://github.com/Le0Developer.png","language":null,"funding_links":[],"categories":["Tools"],"sub_categories":["emacs"],"readme":"# yuepack\n\nA tool for packing yuescript projects into a single file.\n\nYuepack heavily depends on Yuescript. If you need a general solution for packing instead, use [luapack](https://github.com/le0developer/luapack).\nUnlike luapack (which uses the regular `package` and `require` system of Lua), yuepack uses aliasing to import and export modules.\n\n## Usage\n\nYuepack uses two \"magic\" macros that are inserted during the packing process.\n\n- `$import \"module\", \"name\"`\n- `$export \"name\", value`\n\nThe `$import` macro is used to import a module, and the `$export` macro is used to export a value.\n\nHere is an example of a simple project:\n\n```yue\n-- main.yue\ntext = $import \"module\", \"text\"\n\nprint \"Hello\", text\n\n-- module.yue\n$export \"text\", \"world\"\n```\n\nYou can find this example in the `example` directory.\n\nTo pack this project, run the following command:\n\n```bash\nyue -e yuepack.yue main.yue\n```\n\nThis will generate a single Lua file with the following content:\n\n```lua\n-- yuepacked using 0.1.0\nlocal _export_module_text\ndo\n\tdo\n\t\t_export_module_text = \"world\"\n\tend\nend\ndo\n\tlocal text = _export_module_text\n\tprint(\"Hello\", text)\nend\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLe0Developer%2Fyuepack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLe0Developer%2Fyuepack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLe0Developer%2Fyuepack/lists"}