Crates.io | thisthat |
lib.rs | thisthat |
version | 0.1.3 |
source | src |
created_at | 2022-11-19 20:55:46.338472 |
updated_at | 2022-11-20 09:34:22.269489 |
description | Data conversion utility |
homepage | |
repository | https://github.com/timClicks/thisthat/ |
max_upload_size | |
id | 718696 |
size | 21,305 |
Data format conversion utility.
thisthat provides a command-line tool tt
for converting between data formats.
It can to and from convert between these formats:
tt
reads from stdin and writes to stdout. Specify the formats using positional
parameters, e.g. tt THIS THAT
. For example, to convert from JSON to TOML, use
tt json toml
.
$ echo '{"abc": 123 }' | tt json toml
abc = 123
To convert data from a file, use cat
(or an equivalent tool) to do the reading.
$ echo '{"abc": 123 }' > /tmp/example.json
$ cat /tmp/example.json | tt json toml
abc = 123
Some formats produce non-printable characters. Send the output to anther tool to generate readable output.
$ echo '{"abc": 123 }' | tt json msgpack | base64
gaNhYmN7