6 releases

0.1.7 Jan 15, 2025
0.1.6 Sep 27, 2023
0.1.5 Sep 18, 2022
0.1.2 Jul 15, 2022
0.1.1 Jun 28, 2022

#1208 in Command line utilities

Download history 2/week @ 2024-10-09 1/week @ 2024-10-16 1/week @ 2024-10-30 2/week @ 2024-11-06 7/week @ 2024-11-27 61/week @ 2024-12-04 56/week @ 2024-12-11 9/week @ 2024-12-18 2/week @ 2024-12-25 21/week @ 2025-01-01 23/week @ 2025-01-08 140/week @ 2025-01-15

186 downloads per month

Apache-2.0

1MB
182 lines

Contains (MSI installer, 1MB) wix/Microsoft_VC142_CRT_x64.msm

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:

  • binary
cargo install cargo-binstall && cargo binstall ryaspeller
  • from sources
cargo install ryaspeller

Many thanks to:

This tool stands on the shoulders of such giants:

Dependencies

~11MB
~214K SLoC