{"id":13607830,"url":"https://github.com/zimfw/archive","last_synced_at":"2025-04-13T12:13:07.717Z","repository":{"id":62388684,"uuid":"113081099","full_name":"zimfw/archive","owner":"zimfw","description":"Provides functions for easy archive manipulation.","archived":false,"fork":false,"pushed_at":"2023-08-17T00:05:09.000Z","size":32,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T12:13:03.630Z","etag":null,"topics":["archive","unarchive","zim","zimfw","zsh","zsh-plugin","zsh-plugins"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/zimfw.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}},"created_at":"2017-12-04T18:46:20.000Z","updated_at":"2025-03-13T05:20:47.000Z","dependencies_parsed_at":"2024-01-16T23:30:15.980Z","dependency_job_id":"26872955-49db-4d22-9c9e-872a5fcb4c53","html_url":"https://github.com/zimfw/archive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Farchive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Farchive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Farchive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zimfw%2Farchive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zimfw","download_url":"https://codeload.github.com/zimfw/archive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710447,"owners_count":21149191,"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":["archive","unarchive","zim","zimfw","zsh","zsh-plugin","zsh-plugins"],"created_at":"2024-08-01T19:01:21.964Z","updated_at":"2025-04-13T12:13:07.681Z","avatar_url":"https://github.com/zimfw.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"archive\n=======\n\nProvides `archive`, `unarchive` and `lsarchive` functions for easy archive\nmanipulation based on file extensions.\n\n[Don't remember the complete tar command to compress, uncompress or list the\ncontents of an archive?](https://xkcd.com/1168/) Use `archive myarchive.tar.gz\n/path/to/be/archived` to compress, `unarchive myarchive.tar.gz` to uncompress or\n`lsarchive myarchive.tar.gz` to list, for example, and the respective functions\nwill take care of the underlying command for you. They also work with the other\narchive extensions listed below.\n\nSuffix aliases are also provided so files can be directly uncompressed.\n\nThis module will make use of `pbzip2` and `pigz` if available to make use of all available CPU cores.\n\nFunctions\n---------\n\n| Name | Usage\n| ---- | -----\n| `archive` compresses files into an archive. | `archive \u003carchive_name.ext\u003e \u003cfile\u003e...`\n| `unarchive` uncompresses from archives. | `unarchive \u003carchive_name.ext\u003e...`\n| `lsarchive` lists the contents of archives. | `lsarchive \u003carchive_name.ext\u003e...`\n\nArchive extensions\n------------------\n\n| Extensions | Required commands\n| ---------- | -----------------\n| .7z, .001 | `7za`\n| .rar | `unrar` or `rar`\n| .tar.bz, .tar.bz2, .tbz, .tbz2 | `tar`\n| .tar.gz, .tgz | `tar`\n| .tar.lzma, .tlz | `tar` with lzma support or with `lzcat`\n| .tar.xz, .txz | `tar` with xz support or with `xzcat`\n| .tar.zst, .tzst | `tar` with `unzstd`\n| .tar | `tar`\n| .zip | `unzip`\n| .bz, .bz2 | `pbunzip2` or `bunzip2`\n| .gz | `unpigz` or `gunzip`\n| .lzma | `unzlma`\n| .xz | `unxz`\n| .zst | `zstd`\n| .Z | `uncompress`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Farchive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzimfw%2Farchive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzimfw%2Farchive/lists"}