Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 1.68 KB

README.md

File metadata and controls

37 lines (30 loc) · 1.68 KB

convfmt

Actions Status Coverage badge dependency status Crates.io

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 nulls, 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: