Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/focusaurus/cody
Command Line Transcoder Utility
https://github.com/focusaurus/cody
Last synced: 12 days ago
JSON representation
Command Line Transcoder Utility
- Host: GitHub
- URL: https://github.com/focusaurus/cody
- Owner: focusaurus
- Created: 2018-07-16T06:41:50.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-10-15T21:11:55.000Z (about 1 year ago)
- Last Synced: 2024-04-10T19:43:04.427Z (7 months ago)
- Language: Rust
- Size: 20.5 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Cody: Command Line Transcoder
This is a small utility for converting between common data encoding format.
**Usage**: `cody input-format output-format`.
Input data is read from standard input. Transcoded output is written to standard output.
## Examples
```sh
printf fe | cody hexadecimal decimal
254
printf 254 |cody decimal hexadecimal
fe
``````sh
printf "Hello, Cody!" | cody binary base64
SGVsbG8sIENvZHkh
printf SGVsbG8sIENvZHkh | cody base64 binary
Hello, Cody!
``````sh
printf 07ff | cody hexadecimal base64
B/8=
```## Supported Conversions
* binary to hexadecimal
* binary to base64
* binary to decimal
* hexadecimal to binary
* hexadecimal to base64
* hexadecimal to decimal
* base64 to binary
* base64 to hexadecimal
* decimal to binary
* decimal to hexadecimal
* decimal to base64## Command line format abbreviations
If you're into that whole brevity thing:
* hex
* dec
* bin
* 64