Skip to content

meain/tojson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tojson

Convert between yaml, toml and json

Installation

MacOS

brew install meain/meain/tojson

Cargo

cargo install tojson

Source

git clone [email protected]: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'

About

Convert between toml, yaml and json

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages