tojson

Crates.iotojson
lib.rstojson
version0.3.2
sourcesrc
created_at2020-05-27 05:57:39.386146
updated_at2020-09-23 13:21:09.782502
descriptionConvert between toml, yaml and json
homepagehttps://github.com/meain/tojson
repositoryhttps://github.com/meain/tojson
max_upload_size
id246558
size17,369
Abin Simon (meain)

documentation

README

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'
Commit count: 35

cargo fmt