yaml2json

Crates.ioyaml2json
lib.rsyaml2json
version0.1.3
sourcesrc
created_at2022-09-02 03:21:45.623484
updated_at2022-09-02 04:06:17.352539
descriptionConvert YAML to JSON
homepagehttps://github.com/dafu-wu/yaml2json
repository
max_upload_size
id657157
size13,286
dafu (dafu-wu)

documentation

README

yaml2json

Build Status Crates.io

A command-line tool that converts YAML to JSON.

Installation

Cargo

$ cargo install yaml2json

Usage

Convert YAML on stdin to JSON, filtering it through jq:

$ yaml2json <<< 'okay = "ok"' | jq

Convert YAML from a file and pretty-print it without jq:

$ yaml2json --pretty ./demo.yaml
Commit count: 0

cargo fmt