{"id":17964788,"url":"https://github.com/toadmaninteractive/eunzip","last_synced_at":"2026-03-06T09:33:54.538Z","repository":{"id":62809284,"uuid":"255875126","full_name":"toadmaninteractive/eunzip","owner":"toadmaninteractive","description":"Simple unzip library with Zip64 support","archived":false,"fork":false,"pushed_at":"2024-01-26T17:27:55.000Z","size":222,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-05T02:51:09.092Z","etag":null,"topics":["erlang","unzip","zip","zip64"],"latest_commit_sha":null,"homepage":"","language":"Erlang","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/toadmaninteractive.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":"2020-04-15T09:57:01.000Z","updated_at":"2024-09-22T14:03:41.000Z","dependencies_parsed_at":"2024-10-29T12:28:45.851Z","dependency_job_id":null,"html_url":"https://github.com/toadmaninteractive/eunzip","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":"0.16000000000000003","last_synced_commit":"595fdc40539b15460994651c596742f4957d5dd5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toadmaninteractive/eunzip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toadmaninteractive%2Feunzip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toadmaninteractive%2Feunzip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toadmaninteractive%2Feunzip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toadmaninteractive%2Feunzip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toadmaninteractive","download_url":"https://codeload.github.com/toadmaninteractive/eunzip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toadmaninteractive%2Feunzip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30169031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["erlang","unzip","zip","zip64"],"created_at":"2024-10-29T12:08:40.313Z","updated_at":"2026-03-06T09:33:54.446Z","avatar_url":"https://github.com/toadmaninteractive.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eunzip\nSimple unzip library with Zip64 support\n\n## Overview\n\n`Eunzip` allows opening, verifying and decompressing of Zip files \u003e 2GB and Zip64 archives, which are not supported by the standard Erlang `zip` module.\n\nSupports STORE and DEFLATE compression methods.\n\n## Basic usage\n\n```erlang\n% Open a Zip file and read its structure\n{ok, UnzipState} = eunzip:open(\"foo/bar.zip\")\n\n% Get all file and directory entries from a Zip archive\n{ok, Entries} = eunzip:entries(UnzipState)\n\n% Get specific file or directory entry from a Zip archive\n{ok, Entry} = eunzip:entry(UnzipState, \"README.md\")\n\n% Verify an archived file checksum\nok = eunzip:verify(UnzipState, \"README.md\")\n\n% Decompress file from a Zip archive into as a target filename\nok = eunzip:decompress(UnzipState, \"README.md\", \"unpacked/README.md\")\n\n% Close a previously opened Zip file\nok = eunzip:close(UnzipState)\n```\n\n*Note:* closing a previously opened Zip file is mandatory.\n\n## File streaming\n\nArchived file streaming is a technique allowing to process decompressed file by chunks and perform arbitrary actions.\n\nThe example below calculates MD5 checksum on-the-fly.\n\n```erlang\nstream_md5(ZipFile, ArchivedFile) -\u003e\n    {ok, UnzipState} = eunzip:open(\"foo/bar.zip\"),\n    {ok, StreamState} = eunzip:stream_init(UnzipState, \"hugefile.mkv\"),\n    {ok, Md5} = stream_fun(StreamState, crypto:hash_init(md5)),\n    ok = eunzip:close(UnzipState),\n    Md5.\n\nstream_fun(StreamState, Md5State) -\u003e\n    % Read 1 MB chunks of archived data per call\n    case eunzip:stream_read_chunk(1024 * 1024, StreamState) of\n        {ok, Data} -\u003e\n            Md5State1 = crypto:hash_update(Md5State, Data),\n            {ok, crypto:hash_final(Md5State1)};\n        {more, Data, StreamState1} -\u003e\n            stream_fun(StreamState1, crypto:hash_update(Md5State, Data));\n        {error, Reason} -\u003e\n            {error, Reason}\n    end.\n```\n*Note:* stream is closed automatically if all of the file data is read or an error occured.\n\nIf you don't want to read until the end of the file, you should call `eunzip:stream_end/1` function:\n\n```erlang\nok = eunzip:stream_end(StreamState)\n```\n\n## Credits\nEunzip is based on the [Unzip](https://github.com/akash-akya/unzip) Elixir library by [Akash Hiremath](https://github.com/akash-akya).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoadmaninteractive%2Feunzip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoadmaninteractive%2Feunzip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoadmaninteractive%2Feunzip/lists"}