{"id":21346876,"url":"https://github.com/queer/decompressor","last_synced_at":"2025-07-12T17:31:22.092Z","repository":{"id":94882164,"uuid":"592076660","full_name":"queer/decompressor","owner":"queer","description":"c the automagic de(c)ompressor","archived":true,"fork":false,"pushed_at":"2024-01-09T12:59:52.000Z","size":73,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"mistress","last_synced_at":"2025-07-04T15:23:00.531Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/queer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-01-22T20:57:45.000Z","updated_at":"2024-01-09T18:53:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"46e44656-45a5-4b34-82dd-8a85abceeb7d","html_url":"https://github.com/queer/decompressor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/queer/decompressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fdecompressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fdecompressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fdecompressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fdecompressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/queer","download_url":"https://codeload.github.com/queer/decompressor/tar.gz/refs/heads/mistress","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/queer%2Fdecompressor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265025382,"owners_count":23699732,"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":[],"created_at":"2024-11-22T02:11:49.497Z","updated_at":"2025-07-12T17:31:21.793Z","avatar_url":"https://github.com/queer.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# de(c)ompressor\n\nthe de(c)ompressor operates on streams compression streams automagically. input\nstreams are detected by magic numbers, output streams are determined by cli\nflags (or decompress to plain text if none given).\n\n## supported compression formats\n\n- plain text\n- brotli\n- deflate\n- gzip\n- xz\n- zlib\n- zstd\n\n## example usage\n\n```bash\n$ echo \"this is a test\" | gzip | c\n# this is a test\n```\n\n```bash\n$ echo \"this is a test\" | gzip | c -o brotli | brotli -c -d\n# this is a test\n```\n\n```bash\n# brotli cannot be autodetected, so hint it\n$ echo \"this is a test\" | brotli -c | c brotli\n# this is a test\n# without hint: `�%R�B�[d��`\n```\n\n## help\n\n```bash\ngit:(mistress) | ▶  c --help\nUsage: c [OPTIONS] [HINT]\n\nArguments:\n  [HINT]  Hint for the compression type, e.g. `brotli` [default: unknown]\n\nOptions:\n  -q, --quiet\n  -o, --output-type \u003cOUTPUT_TYPE\u003e  Force the output to be compressed with the given type, e.g. `brotli` [default: none] [possible values: zstd, brotli, gzip, deflate, zlib, xz, none]\n  -h, --help                       Print help\ngit:(mistress) | ▶\n```\n\nde(c)ompressor must be run via stdin/out pipes, otherwise it will fail:\n\n```bash\ngit:(mistress) 7 | ▶  c\nError:\n   0: input is a terminal, please pipe data via stdin!\n\nLocation:\n   src/main.rs:36\n\nBacktrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.\nRun with RUST_BACKTRACE=full to include source snippets.\ngit:(mistress) | ▶\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueer%2Fdecompressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueer%2Fdecompressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueer%2Fdecompressor/lists"}