{"id":16038036,"url":"https://github.com/joseluisq/compactor","last_synced_at":"2025-04-05T05:41:52.733Z","repository":{"id":57550042,"uuid":"307205339","full_name":"joseluisq/compactor","owner":"joseluisq","description":"Tar/Gzip and Zip archive utilities with optional checksum computation.","archived":false,"fork":false,"pushed_at":"2020-12-13T23:20:15.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-22T14:22:58.939Z","etag":null,"topics":["archiving","checksum","compression","golang","golang-package","gzip","tar","zip"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joseluisq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-25T22:27:27.000Z","updated_at":"2020-12-13T23:17:24.000Z","dependencies_parsed_at":"2022-09-10T08:12:05.161Z","dependency_job_id":null,"html_url":"https://github.com/joseluisq/compactor","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fcompactor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fcompactor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fcompactor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fcompactor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joseluisq","download_url":"https://codeload.github.com/joseluisq/compactor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294463,"owners_count":20915338,"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":["archiving","checksum","compression","golang","golang-package","gzip","tar","zip"],"created_at":"2024-10-08T22:23:08.615Z","updated_at":"2025-04-05T05:41:52.713Z","avatar_url":"https://github.com/joseluisq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compactor [![Build Status](https://travis-ci.com/joseluisq/compactor.svg?branch=master)](https://travis-ci.com/joseluisq/compactor) [![codecov](https://codecov.io/gh/joseluisq/compactor/branch/master/graph/badge.svg)](https://codecov.io/gh/joseluisq/compactor) [![Go Report Card](https://goreportcard.com/badge/github.com/joseluisq/compactor)](https://goreportcard.com/report/github.com/joseluisq/compactor) [![PkgGoDev](https://pkg.go.dev/badge/github.com/joseluisq/compactor)](https://pkg.go.dev/github.com/joseluisq/compactor)\n\n\u003e [Tar](https://golang.org/pkg/archive/tar/)/[Gzip](https://golang.org/pkg/compress/gzip/) and [Zip](https://golang.org/pkg/archive/zip/) archive utilities with optional [checksum](https://en.wikipedia.org/wiki/Checksum) computation.\n\n## Usage\n\n### Tar/Gzip\n\n```go\npackage main\n\nimport (\n\t\"github.com/joseluisq/compactor\"\n)\n\nfunc main() {\n\tcompactor.CreateTarballWithChecksum(\n\t\t// 1. a base input path directory (it will be skipped for each archive header)\n\t\t\"./my-base-dir\",\n\t\t// 2. archive input file or directory\n\t\t\"./my-file-or-dir\",\n\t\t// 3. archive output file\n\t\t\"~/my-archive.tar.gz\",\n\t\t// 4. checksum algorithm\n\t\t\"sha256\",\n\t\t// 5. checksum output file\n\t\t\"~/my-archive.CHECKSUM.txt\",\n\t)\n\n\t// output files:\n\t//\t~/my-archive.tar.gz\n\t//\t~/my-archive.sha256.tar.txt\n}\n```\n\n### Zip\n\n\n```go\npackage main\n\nimport (\n\t\"github.com/joseluisq/compactor\"\n)\n\nfunc main() {\n\tcompactor.CreateZipballWithChecksum(\n\t\t// 1. a base input path directory (it will be skipped for each archive header)\n\t\t\"./my-base-dir\",\n\t\t// 2. archive input file or directory\n\t\t\"./my-file-or-dir\",\n\t\t// 3. archive output file\n\t\t\"~/my-archive.zip\",\n\t\t// 4. checksum algorithm\n\t\t\"sha256\",\n\t\t// 5. checksum output file\n\t\t\"~/my-archive.CHECKSUM.zip.txt\",\n\t)\n\n\t// output files:\n\t//\t~/my-archive.zip\n\t//\t~/my-archive.sha256.zip.txt\n}\n```\n\nFor more API functionalities take a look at https://pkg.go.dev/github.com/joseluisq/compactor\n\n## Contributions\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in current work by you, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.\n\nFeel free to send some [Pull request](https://github.com/joseluisq/compactor/pulls) or [issue](https://github.com/joseluisq/compactor/issues).\n\n## License\n\nThis work is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).\n\n© 2020-present [Jose Quintana](https://git.io/joseluisq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fcompactor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoseluisq%2Fcompactor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fcompactor/lists"}