convfmt

Crates.ioconvfmt
lib.rsconvfmt
version0.1.6
sourcesrc
created_at2022-06-28 12:40:40.174561
updated_at2023-09-27 21:09:49.693795
descriptioncli tool which can convert different formats
homepagehttps://github.com/oriontvv/convfmt/
repositoryhttps://github.com/oriontvv/convfmt/
max_upload_size
id614810
size1,264,053
Vasiliy Taranov (oriontvv)

documentation

https://docs.rs/convfmt

README

convfmt

Actions Status 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:

Commit count: 130

cargo fmt