Crates.io | convfmt |
lib.rs | convfmt |
version | 1.2.1 |
created_at | 2022-06-28 12:40:40.174561+00 |
updated_at | 2025-09-25 21:42:01.339387+00 |
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,325,799 |
convfmt is a command line tool in rust which can convert between formats:
$ cat cfg.yml | convfmt -f yaml -t toml > cfg.toml
$ 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).
Download built binary
Install binary using cargo-binstall
cargo install cargo-binstall && cargo binstall convfmt
cargo install convfmt
This tool stands on the shoulders of such giants: