{"id":30872913,"url":"https://github.com/bahaaio/base64-cli","last_synced_at":"2025-09-07T22:46:42.083Z","repository":{"id":303236127,"uuid":"1014799236","full_name":"Bahaaio/base64-cli","owner":"Bahaaio","description":"A minimal and efficient Base64 encoder/decoder CLI tool written in C++.","archived":false,"fork":false,"pushed_at":"2025-07-06T13:37:58.000Z","size":5,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-09T15:20:43.393Z","etag":null,"topics":["base64","cli","cpp","decoding","encoding","lightweight","utility"],"latest_commit_sha":null,"homepage":"","language":"C++","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/Bahaaio.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-07-06T12:47:54.000Z","updated_at":"2025-07-06T22:12:44.000Z","dependencies_parsed_at":"2025-07-06T14:46:51.749Z","dependency_job_id":null,"html_url":"https://github.com/Bahaaio/base64-cli","commit_stats":null,"previous_names":["bahaamohamed98/base64-cli","bahaaio/base64-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bahaaio/base64-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2Fbase64-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2Fbase64-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2Fbase64-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2Fbase64-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bahaaio","download_url":"https://codeload.github.com/Bahaaio/base64-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bahaaio%2Fbase64-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274107986,"owners_count":25223473,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["base64","cli","cpp","decoding","encoding","lightweight","utility"],"created_at":"2025-09-07T22:46:41.057Z","updated_at":"2025-09-07T22:46:42.066Z","avatar_url":"https://github.com/Bahaaio.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧬 base64-cli\n\nA minimal and efficient Base64 encoder/decoder written in C++.  \nSupports file input/output, piped stdin, and argument input.\n\n\u003e 🔧 No dependencies. Cross-platform. Fast. Ideal for quick scripts or lightweight CLI usage.\n\n## ✨ Features\n\n- 📝 Encode or decode Base64\n- 📂 Input from file, argument, or `stdin`\n- 📤 Output to file or `stdout`\n- 🚫 Graceful error handling\n- 🧪 Useful for piping, scripting, and quick testing\n\n## 📋 Examples\n\n### 🔤 Encode a string\n\n```bash\n./base64 \"hello\"\n# → aGVsbG8=\n```\n\n### 📝 Encode a file\n\n```bash\n./base64 -i hello.txt\n```\n\n### 🧪 Pipe input via stdin\n\n```bash\necho -n \"hello\" | ./base64\n```\n\n### 🔓 Decode from file to binary output\n\n```bash\n./base64 -d -i encoded.txt -o image.png\n```\n\n### ❔ Show help\n\n```bash\n./base64 --help\n```\n\n## 🛠️ Build\n\n### Using CMake\n\n```bash\ncmake -B build\ncd build\ncmake --build .\n./base64 \"hello\"\n```\n\n### Or manually\n\n```bash\ng++ -std=c++17 -O2 -o base64 ./src/main.cpp\n```\n\n## 📦 Usage\n\n```bash\nbase64 [options] [input...]\n```\n\n### Options\n\n| Option           | Description            |\n| ---------------- | ---------------------- |\n| `-e`, `--encode` | Encode input (default) |\n| `-d`, `--decode` | Decode input           |\n| `-i \u003cpath\u003e`      | Read input from file   |\n| `-o \u003cpath\u003e`      | Write output to file   |\n| `-h`, `--help`   | Show help message      |\n\n## 🔐 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahaaio%2Fbase64-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbahaaio%2Fbase64-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbahaaio%2Fbase64-cli/lists"}