{"id":22318255,"url":"https://github.com/sygmei/11zip","last_synced_at":"2025-07-29T12:31:23.276Z","repository":{"id":45095486,"uuid":"83572937","full_name":"Sygmei/11Zip","owner":"Sygmei","description":"Dead simple zipping / unzipping C++ Lib","archived":false,"fork":false,"pushed_at":"2023-05-09T23:42:32.000Z","size":1176,"stargazers_count":92,"open_issues_count":6,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T12:33:06.620Z","etag":null,"topics":["cpp17","filesystem","minizip","zip","zlib"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/Sygmei.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}},"created_at":"2017-03-01T15:57:52.000Z","updated_at":"2025-03-31T01:58:26.000Z","dependencies_parsed_at":"2024-12-03T23:13:07.564Z","dependency_job_id":"eb96bc44-1ce3-4194-9996-c03e1fd5e2c0","html_url":"https://github.com/Sygmei/11Zip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Sygmei/11Zip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sygmei%2F11Zip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sygmei%2F11Zip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sygmei%2F11Zip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sygmei%2F11Zip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sygmei","download_url":"https://codeload.github.com/Sygmei/11Zip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sygmei%2F11Zip/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267686340,"owners_count":24127715,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"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":["cpp17","filesystem","minizip","zip","zlib"],"created_at":"2024-12-03T23:12:56.363Z","updated_at":"2025-07-29T12:31:22.965Z","avatar_url":"https://github.com/Sygmei.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 11Zip\n\n[![build](https://github.com/Sygmei/11Zip/actions/workflows/build.yml/badge.svg)](https://github.com/Sygmei/11Zip/actions/workflows/build.yml)\n\n11Zip (or **EL**\u003csub\u003eeven\u003c/sub\u003e**Zip**) is a dead simple zipping / unzipping C++ Lib\n\nI didn't really wanted to make my own zipping / unzipping library but as I found nothing else, I made my own.\n\nThat's why I called this lib 11Zip, 11 is the atomic number of the sodium as it describes pretty well my salty feeling when searching for a zipping / unzipping C++ Lib.\n\nBy the same time it's also a reference to 7zip.\n\nThe lib is based on zlib \u0026 minizip : https://github.com/madler/zlib\n\nIt does also include some wrapper code from here : www.vilipetek.com/2013/11/22/zippingunzipping-files-in-c/\n\n## Installation\n\nClone this repository using the following command :\n\n```bash\ngit clone --recurse-submodules https://github.com/Sygmei/11Zip.git\n```\n\n(don't forget about the `--recurse-submodules` part or dependencies are not going to be downloaded).\n\nOnce downloaded, put the content into your `extlibs/` (or equivalent) directory and put the following lines in your `CMakeLists.txt` :\n\n```cmake\nadd_subdirectory(extlibs/elzip) # Path to the 11zip\n\ntarget_link_libraries(YourTargetName elzip)\n```\n\n## Reference\n\n### `elz::extractZip`\n\n```cpp\nvoid elz::extractZip(std::string zipname, std::string target = \".\", std::string password = \"\");\n```\n\nUnzips the content of a zip in \"target\" folder (which is current folder by default).\n\n- **zipname** : Path to the .zip archive to unzip\n- **target** : Path to the directory where you want to unzip the archive, defaults to the current working directory\n- **password** : Archive password (optional)\n\n### `elz::extractFile`\n\n```cpp\nvoid elz::extractFile(std::string zipname, std::string filename, std::string target = \".\", std::string password = \"\");\n```\n\nExtracts a single file from a zip archive\n\n- **zipname** : Path to the .zip archive to unzip the file from\n- **filename** : Path of the file to extract within the zip archive, note that this name will be used by the unzipped file as well\n- **target** : Path where to extract the file to, defaults to the current working directory\n- **password** : Archive password (optional)\n\n### `elz::zipFolder`\n\n```cpp\nvoid elz::zipFolder(std::string folderName, std::string zipTarget = \"\");\n```\n\nZips the folder \"folderName\" to \"zipTarget\" (Which is \"folderName\".zip by default).\n\n- **folderName** : Name of the folder to zip (will zip all of its content, root folder excluded)\n- **zipTarget** : Path to .zip archive that will be created, defaults to `folderName`.zip\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsygmei%2F11zip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsygmei%2F11zip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsygmei%2F11zip/lists"}