https://github.com/meain/tojson
Convert between toml, yaml and json
https://github.com/meain/tojson
cli convert json rust toml yaml
Last synced: about 2 months ago
JSON representation
Convert between toml, yaml and json
- Host: GitHub
- URL: https://github.com/meain/tojson
- Owner: meain
- License: apache-2.0
- Created: 2020-05-27T05:57:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T18:51:49.000Z (over 4 years ago)
- Last Synced: 2025-03-12T21:11:19.270Z (over 1 year ago)
- Topics: cli, convert, json, rust, toml, yaml
- Language: Rust
- Homepage: https://crates.io/crates/tojson
- Size: 49.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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 [default: auto] [possible values: auto, yaml, toml, json]
-t, --to [default: json] [possible values: json, yaml, toml]
ARGS:
```
#### Example usecase
```
tojson Cargo.toml | jq -r '.package.version'
```