Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yogeshnikam671/base64-to-file
CLI tool to create a file with decoded content from a base64 encoded string
https://github.com/yogeshnikam671/base64-to-file
base64 base64-decode base64-decoder base64-decoding base64-encode base64-encoding cli cli-app decoded-file file-create file-creation
Last synced: about 8 hours ago
JSON representation
CLI tool to create a file with decoded content from a base64 encoded string
- Host: GitHub
- URL: https://github.com/yogeshnikam671/base64-to-file
- Owner: yogeshnikam671
- License: mit
- Created: 2023-09-25T16:25:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-06T17:58:49.000Z (over 1 year ago)
- Last Synced: 2024-12-01T02:09:05.155Z (about 2 months ago)
- Topics: base64, base64-decode, base64-decoder, base64-decoding, base64-encode, base64-encoding, cli, cli-app, decoded-file, file-create, file-creation
- Language: Go
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# base64-to-file
**base64-to-file** is a simple command-line tool that decodes Base64-encoded content and creates a file with the provided file type extension. It can be useful when you have Base64-encoded data that you want to decode and save as a file, such as images, documents, or any other file type. (base64 to file converter)
## Usage
btof [flag] [input]
### Flags
- `-h, --help`: Shows help.
- `-i, --input `: Takes input as a string.
- `-f, --file `: Takes input from a file.## Examples
1. Decoding from a string: ```btof -i 'aGVsbG8gd29ybGQ='```
This creates a **txt** file with the decoded content.2. Decoding from a file and specifying the file type: ```btof -f input.txt pdf```
This takes base64 content from `input.txt` and creates a **pdf** file with the decoded content.3. Decoding from a file without specifying the file type (defaults to txt): btof -f input.txt
This takes base64 content from `input.txt` and creates a **txt** file with the decoded content.## Installation
Run the command `brew install yogeshnikam671/btof/btof` to install this CLI tool.