{"id":28976144,"url":"https://github.com/mgreif/go-brotli-cli","last_synced_at":"2025-06-24T13:17:37.481Z","repository":{"id":300791840,"uuid":"1007027304","full_name":"MGreif/go-brotli-cli","owner":"MGreif","description":"A simple CLI tool to compress and decompress files using brotli","archived":false,"fork":false,"pushed_at":"2025-06-23T15:57:33.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T17:00:57.191Z","etag":null,"topics":["brotli","compression","go","golang","google"],"latest_commit_sha":null,"homepage":"","language":"Go","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/MGreif.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-23T10:57:54.000Z","updated_at":"2025-06-23T15:57:36.000Z","dependencies_parsed_at":"2025-06-23T17:12:00.786Z","dependency_job_id":null,"html_url":"https://github.com/MGreif/go-brotli-cli","commit_stats":null,"previous_names":["mgreif/go-brotli-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MGreif/go-brotli-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGreif%2Fgo-brotli-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGreif%2Fgo-brotli-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGreif%2Fgo-brotli-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGreif%2Fgo-brotli-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MGreif","download_url":"https://codeload.github.com/MGreif/go-brotli-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGreif%2Fgo-brotli-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261683194,"owners_count":23193694,"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":["brotli","compression","go","golang","google"],"created_at":"2025-06-24T13:17:36.777Z","updated_at":"2025-06-24T13:17:37.467Z","avatar_url":"https://github.com/MGreif.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A small and simple brotli CLI tool\n\nA simple CLI tool to compress and decompress data using [brotli](https://github.com/google/brotli).\nThis projects builds upon [Andybalholm's brotli library](https://github.com/andybalholm/brotli).\n\n## Features\n\nTake input from:\n- Stdin\n- A file (`-i`)\n\nPut output to:\n- Stdout\n- A file (`-o`)\n\n\n## Usage\n\n### `./brotli-cli -h`\n\n```\nUsage:\n        ./build/brotli-cli {compress,decompress}\nActions:\n        compress # Compresses the given input\n        decompress # Decompresses the given input\nOptions:\n  -h    Print help\n```\n\n### `./brotli-cli compress -h`\n\n```\nUsage:\n  -bs int\n        Buffer Size (default 4096)\n  -fi int\n        Flush Interval (default 10)\n  -i string\n        Input file (default stdin)\n  -o string\n        Output file (default stdout)\n```\n\n### `./brotli-cli decompress -h`\n\n```\nUsage:\n  -bs int\n        Buffer Size (default 4096)\n  -dont-trim-zeros\n        Dont trim zeroes at the end of the file\n  -fi int\n        Flush Interval (default 10)\n  -i string\n        Input file (default stdin)\n  -o string\n        Output file (default stdout)\n```\n\n### `./brotli-cli compress -i file.html -o file.br`\n### `./brotli-cli decompress -i file.br -o file.html`\n\n### `echo \"\u003ctitle\u003eFancy Page\u003c/title\u003e\" | ./brotli-cli compress -o out.br`\n\n\n### `echo \"\u003ctitle\u003eFancy Page\u003c/title\u003e\" | ./brotli-cli compress | xxd`\n\n```\n00000000: 8bff 07f8 8f94 aced 9112 c028 2cc7 dcf2  ...........(,...\n00000010: ba90 4354 794c 23b0 c125 04c1 3a4f 60ff  ..CTyL#..%..:O`.\n00000020: 3c00 8001                                \u003c...\n```\n\n### `echo \"\u003ctitle\u003eFancy Page\u003c/title\u003e\" | ./brotli-cli compress | ./brotli-cli decompress`\n```\n\u003ctitle\u003eFancy Page\u003c/title\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgreif%2Fgo-brotli-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgreif%2Fgo-brotli-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgreif%2Fgo-brotli-cli/lists"}