5 releases
0.1.6 | Sep 27, 2023 |
---|---|
0.1.5 | Sep 18, 2022 |
0.1.2 | Jul 15, 2022 |
0.1.1 | Jun 28, 2022 |
0.1.0 | Jun 28, 2022 |
#1457 in Command line utilities
1MB
174 lines
Contains (MSI installer, 1MB) wix/Microsoft_VC142_CRT_x64.msm
convfmt
convfmt is a command line tool which can convert between formats:
Usage:
$ 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).
Installation:
cargo install convfmt
Many thanks to:
This tool stands on the shoulders of such giants:
Dependencies
~7MB
~141K SLoC