Crates.io | convfmt |
lib.rs | convfmt |
version | 0.1.6 |
source | src |
created_at | 2022-06-28 12:40:40.174561 |
updated_at | 2023-09-27 21:09:49.693795 |
description | cli tool which can convert different formats |
homepage | https://github.com/oriontvv/convfmt/ |
repository | https://github.com/oriontvv/convfmt/ |
max_upload_size | |
id | 614810 |
size | 1,264,053 |
convfmt is a command line tool which can convert between formats:
$ cat cfg.toml | convfmt -f toml -t yaml > cfg.yml
$ convfmt -f json -t json < compact.json > pretty.json
$ curl https://api.github.com/users/oriontvv | convfmt -f json -t json5 > api.json5
By default convfmt
uses pretty
format(can be disabled with --compact
option).
Beware of null
s, some formats don't support them (e.g. toml).
cargo install convfmt
This tool stands on the shoulders of such giants: