{"id":50416811,"url":"https://github.com/lde-org/archive","last_synced_at":"2026-05-31T06:05:53.189Z","repository":{"id":354361202,"uuid":"1214752191","full_name":"lde-org/archive","owner":"lde-org","description":"A cross-platform archive reading and writing library for LuaJIT.","archived":false,"fork":false,"pushed_at":"2026-04-28T07:52:28.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-28T09:29:21.702Z","etag":null,"topics":["archive","lde","lua","luajit","tar","zip"],"latest_commit_sha":null,"homepage":"","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/lde-org.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-19T02:06:21.000Z","updated_at":"2026-04-28T07:52:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lde-org/archive","commit_stats":null,"previous_names":["lde-org/archive"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/lde-org/archive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lde-org%2Farchive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lde-org%2Farchive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lde-org%2Farchive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lde-org%2Farchive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lde-org","download_url":"https://codeload.github.com/lde-org/archive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lde-org%2Farchive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33720931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["archive","lde","lua","luajit","tar","zip"],"created_at":"2026-05-31T06:05:52.493Z","updated_at":"2026-05-31T06:05:53.170Z","avatar_url":"https://github.com/lde-org.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# archive\n\nThis is a cross platform library to create, modify and extract archive files.\n\n## Usage\n\n```\nlde add archive --git https://github.com/lde-org/archive\n```\n\n## Examples\n\n**Extract a ZIP or TAR archive:**\n\n```lua\nlocal Archive = require(\"archive\")\n\nlocal ok, err = Archive.new(\"path/to/file.zip\"):extract(\"output/dir\")\nif not ok then error(err) end\n\n-- Strip the top-level directory (e.g. \"repo-main/src\" → \"src\")\nArchive.new(\"file.tar.gz\"):extract(\"output/dir\", { stripComponents = true })\n```\n\n**Create and save an archive:**\n\n```lua\nlocal Archive = require(\"archive\")\n\nlocal files = {\n  [\"hello.txt\"]     = \"Hello, world!\",\n  [\"src/init.lua\"]  = \"return {}\",\n}\n\n-- Format is inferred from the extension: .zip, .tar, or .tar.gz\nlocal ok, err = Archive.new(files):save(\"output.zip\")\nif not ok then error(err) end\n\nArchive.new(files):save(\"output.tar.gz\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flde-org%2Farchive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flde-org%2Farchive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flde-org%2Farchive/lists"}