go install github.com/osaka-lab/osaka-codec@latest
You can download the latest release and move the binary to your ~/.local/bin
directory.
osaka-codec [command] {file/text}
Available Commands:
decode Decode data with osaka-codec
encode Encode data with osaka-codec
Flags:
-o, --output string Specify an output file to save the result. (Only on file encoding/decoding)
-s, --string Specify that the input arguments are a string rather than a file path.
Encoding a file
osaka-codec encode {file/text}
Decoding a file
osaka-codec decode {file/text}
Add
-s
/--string
if it's a string.