2 releases

0.1.3 Sep 2, 2022
0.1.2 Sep 2, 2022
0.1.1 Sep 2, 2022
0.1.0 Sep 2, 2022

#335 in #yaml

Download history 4/week @ 2024-02-25 3/week @ 2024-03-10 50/week @ 2024-03-31

53 downloads per month

MIT license

5KB
56 lines

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

Dependencies

~2.7–3.5MB
~74K SLoC