{"id":15910465,"url":"https://github.com/1024jp/gzipswift","last_synced_at":"2025-05-16T04:03:38.080Z","repository":{"id":24289595,"uuid":"27684566","full_name":"1024jp/GzipSwift","owner":"1024jp","description":"Swift package that enables gzip/gunzip Data using zlib","archived":false,"fork":false,"pushed_at":"2024-06-24T04:00:27.000Z","size":286,"stargazers_count":564,"open_issues_count":9,"forks_count":137,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-05-16T04:03:05.358Z","etag":null,"topics":["carthage","cocoapods","framework","gzip","spm","swift","zlib"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/1024jp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["1024jp"]}},"created_at":"2014-12-07T21:00:29.000Z","updated_at":"2025-05-12T15:59:25.000Z","dependencies_parsed_at":"2024-04-20T15:44:31.029Z","dependency_job_id":"aeae45a2-17ee-47f3-a805-5c356f76486c","html_url":"https://github.com/1024jp/GzipSwift","commit_stats":{"total_commits":262,"total_committers":15,"mean_commits":"17.466666666666665","dds":"0.11068702290076338","last_synced_commit":"e0f41175a8b3fa051fccebc89629e6e1dee42026"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1024jp%2FGzipSwift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1024jp%2FGzipSwift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1024jp%2FGzipSwift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1024jp%2FGzipSwift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1024jp","download_url":"https://codeload.github.com/1024jp/GzipSwift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464891,"owners_count":22075570,"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":["carthage","cocoapods","framework","gzip","spm","swift","zlib"],"created_at":"2024-10-06T15:06:12.927Z","updated_at":"2025-05-16T04:03:38.050Z","avatar_url":"https://github.com/1024jp.png","language":"Swift","funding_links":["https://github.com/sponsors/1024jp"],"categories":[],"sub_categories":[],"readme":"\nGzipSwift\n========================\n\n[![platform](https://img.shields.io/badge/platform-macOS%20|%20iOS%20|%20watchOS%20|%20tvOS%20|%20Linux-blue.svg)]()\n[![CI Status](https://github.com/1024jp/GzipSwift/workflows/CI/badge.svg)](https://github.com/1024jp/GzipSwift/actions)\n[![SwiftPM-compatible](https://img.shields.io/badge/SwiftPM-✔-4BC51D.svg?style=flat)](https://swift.org/package-manager/)\n\n__GzipSwift__ is a framework with an extension of Data written in Swift. It enables compress/decompress gzip using zlib.\n\nGzipSwift requires no privacy manifests since it does not access to any privacy information.\n\n\n## Usage\n\n```swift\nimport Gzip\n\n// gzip\nlet compressedData: Data = try! data.gzipped()\nlet optimizedData: Data = try! data.gzipped(level: .bestCompression)\n\n// gunzip\nlet decompressedData: Data\nif data.isGzipped {\n    decompressedData = try! data.gunzipped()\n} else {\n    decompressedData = data\n}\n```\n\n\n## Installation\n\nGzipSwift is SwiftPM-compatible. To install, add this package to your `Package.swift` or your Xcode project.\n\n```swift\ndependencies: [\n    .package(name: \"Gzip\", url: \"https://github.com/1024jp/GzipSwift\", from: Version(6, 0, 0)),\n],\n```\n\n#### For Linux\n\n1. Install zlib if you haven't installed yet:\n\n    ```bash\n    $ apt-get install zlib-dev\n    ```\n2. Add this package to your package.swift.\n3. If Swift build failed with a linker error:\n    * check if libz.so is in your /usr/local/lib\n        * if no, reinstall zlib as step (1)\n        * if yes, link the library manually by passing '-Xlinker -L/usr/local/lib' with `swift build`\n\n\n## License\n\n© 2014-2024 1024jp\n\nGzipSwift is distributed under the terms of the __MIT License__. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1024jp%2Fgzipswift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1024jp%2Fgzipswift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1024jp%2Fgzipswift/lists"}