https://github.com/jeansidharta/jy
An extremely simple json to yaml cli converter
https://github.com/jeansidharta/jy
cli json rust yaml
Last synced: 3 months ago
JSON representation
An extremely simple json to yaml cli converter
- Host: GitHub
- URL: https://github.com/jeansidharta/jy
- Owner: Jeansidharta
- License: mit
- Created: 2023-06-21T06:38:49.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-21T06:59:56.000Z (about 3 years ago)
- Last Synced: 2024-04-24T03:27:06.001Z (about 2 years ago)
- Topics: cli, json, rust, yaml
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jy
This is an extremely simple JSON to YAML converter. It'll read JSON from stdin and print out YAML on stdout.
This was inspired by [yj](https://github.com/bruceadams/yj). Even though yj can do the same thing as this project, I wanted something very simple for this.
# installation
You must have the rust toolchain installed in your system. You can install it [here](https://www.rust-lang.org/tools/install) if you need to.
`cargo install jy`
# Usage
This program receives no arguments. It'll simply read from the stdin and write to stdout. Example:
`echo "{\"potato\": \"tomato\"}" | jy`
will output `potato: tomato`