8 releases
0.3.2 | Sep 23, 2020 |
---|---|
0.3.1 | May 29, 2020 |
0.2.7 | May 27, 2020 |
0.1.6 | May 27, 2020 |
#59 in #convert-json
29 downloads per month
9KB
194 lines
tojson
Convert between yaml, toml and json
Installation
MacOS
brew install meain/meain/tojson
Cargo
cargo install tojson
Source
git clone git@github.com:meain/tojson.git
cd tojson && cargo install --force --path .
Usage
USAGE:
tojson [FLAGS] [OPTIONS] [filename]
FLAGS:
-h, --help Prints help information
-p, --pretty
-V, --version Prints version information
OPTIONS:
-f, --from <from> [default: auto] [possible values: auto, yaml, toml, json]
-t, --to <to> [default: json] [possible values: json, yaml, toml]
ARGS:
<filename>
Example usecase
tojson Cargo.toml | jq -r '.package.version'
Dependencies
~6.5MB
~118K SLoC