{"id":16953205,"url":"https://github.com/c4milo/unpackit","last_synced_at":"2025-04-06T07:15:17.582Z","repository":{"id":20358568,"uuid":"23633685","full_name":"c4milo/unpackit","owner":"c4milo","description":"Go package to natively decompress and unarchive tar.gz, tar.bzip2, tar.xz, zip and tar files.","archived":false,"fork":false,"pushed_at":"2022-10-04T15:55:30.000Z","size":3279,"stargazers_count":82,"open_issues_count":2,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-30T06:08:42.668Z","etag":null,"topics":["bzip2","decompression-library","go","golang","gzip","tar","unpack","xz","zip"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c4milo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-03T19:10:46.000Z","updated_at":"2025-02-27T12:43:42.000Z","dependencies_parsed_at":"2022-07-10T09:02:13.091Z","dependency_job_id":null,"html_url":"https://github.com/c4milo/unpackit","commit_stats":null,"previous_names":["c4milo/unzipit"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c4milo%2Funpackit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c4milo%2Funpackit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c4milo%2Funpackit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c4milo%2Funpackit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c4milo","download_url":"https://codeload.github.com/c4milo/unpackit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445682,"owners_count":20939961,"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":["bzip2","decompression-library","go","golang","gzip","tar","unpack","xz","zip"],"created_at":"2024-10-13T22:06:38.810Z","updated_at":"2025-04-06T07:15:17.550Z","avatar_url":"https://github.com/c4milo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UnpackIt\n\n[![GoDoc](https://godoc.org/github.com/c4milo/unpackit?status.svg)](https://godoc.org/github.com/c4milo/unpackit)\n[![Build Status](https://travis-ci.org/c4milo/unpackit.svg?branch=master)](https://travis-ci.org/c4milo/unpackit)\n\nThis Go library allows you to easily unpack the following files using magic numbers:\n\n* tar.gz\n* tar.bzip2\n* tar.xz\n* zip\n* tar\n\n## Usage\n\nUnpack a file:\n\n```go\n    file, _ := os.Open(test.filepath)\n    err := unpackit.Unpack(file, tempDir)\n```\n\nUnpack a stream (such as a http.Response):\n\n```go\n    res, err := http.Get(url)\n    err := unpackit.Unpack(res.Body, tempDir)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc4milo%2Funpackit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc4milo%2Funpackit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc4milo%2Funpackit/lists"}