{"id":19860669,"url":"https://github.com/susonicth/zigluastrip","last_synced_at":"2026-01-05T11:15:06.727Z","repository":{"id":184721666,"uuid":"672191398","full_name":"SuSonicTH/zigluastrip","owner":"SuSonicTH","description":"strip/minimize lua source code","archived":false,"fork":false,"pushed_at":"2024-07-21T21:33:03.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T07:32:02.838Z","etag":null,"topics":["comments","lua","minify","minimize","strip","whitespace"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/SuSonicTH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-07-29T08:17:06.000Z","updated_at":"2024-07-21T21:33:06.000Z","dependencies_parsed_at":"2024-07-21T22:49:02.111Z","dependency_job_id":"91cd2128-6344-4c8b-9f00-a086bab2a06f","html_url":"https://github.com/SuSonicTH/zigluastrip","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.10526315789473684","last_synced_commit":"c5b05512e700ace1f6b4af72c0d18c1751d6f314"},"previous_names":["susonicth/zigluastrip"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuSonicTH%2Fzigluastrip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuSonicTH%2Fzigluastrip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuSonicTH%2Fzigluastrip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuSonicTH%2Fzigluastrip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuSonicTH","download_url":"https://codeload.github.com/SuSonicTH/zigluastrip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244767891,"owners_count":20507138,"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":["comments","lua","minify","minimize","strip","whitespace"],"created_at":"2024-11-12T15:06:40.187Z","updated_at":"2026-01-05T11:15:06.719Z","avatar_url":"https://github.com/SuSonicTH.png","language":"Zig","readme":"# zigluastrip\na small commandline tool/library to minimize a lua source script by removing unnessesary whitespaces and comments to compact the source file.\n\n## compile exe\nTo compile the executable you need zig, tested with version 0.15.1 it can be downloadad as a single archive from [ziglang.org](https://ziglang.org/download/)\n\nUncompress the archive and either add it to your path or call the build command with the full path.\n\nTo compile the executable call `zig build exe` the resulting executable will be in `zig-out/bin` If you want create a slightly faster release build call `zig build exe -Doptimize=ReleaseFast`\n\n## zig module\nTo use this as a module in you project create a `build.zig.zon` file, adding zigLuaStrip as dependency.\n\n```bash\nzig fetch --save git+https://github.com/SuSonicTH/zigluastrip#HEAD\n```\n\nand in your `build.zig` add the module as dependecy\n```zig\nconst zigLuaStrip = b.dependency(\"zigLuaStrip\", .{\n    .target = target,\n    .optimize = optimize,\n});\n```\n\nand add it as a module to your exe/lib\n```zig\n//sample exe\nconst exe = b.addExecutable(.{\n    .name = \"zli\",\n    .root_source_file = b.path(\"src/main.zig\"),\n    .target = target,\n    .optimize = optimize,\n});\n\n//add module\nexe.root_module.addImport(\"zigLuaStrip\", zigLuaStrip.module(\"zigLuaStrip\"));\n```\n\n## zigLuaStrip exe as dependency in your build\nIf you, like me, want to minimize lua source files at zig build time to include them in your binary you can also use this module to run the exe at build time.\n\nAdd zigLuaStrip as dependecy in `build.zig.zon` and `build.zig` as described above and then add a run step to do the stripping at compile time.\nThe artifact name is in lower case, not upper case as the module!!\n\n```zig\nvar strip_step = b.addRunArtifact(zigLuaStrip.artifact(\"zigluastrip\"));\nstrip_step.addArgs(\u0026.{ script.input, script.output });\nexe.step.dependOn(\u0026strip_step.step);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusonicth%2Fzigluastrip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsusonicth%2Fzigluastrip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsusonicth%2Fzigluastrip/lists"}