/yaml2json

Racket flavored YAML to JSON converter

Primary LanguageRacketGNU Lesser General Public License v3.0LGPL-3.0

yaml2json

Racket flavored version of yaml2json

Super simple YAML to JSON converter, meant for use as a CLI command. Will take a filename to open and parse or read from stdin.

Prerequisites:

You will need a Racket.

To use:

$ yaml2json alpha.yaml // will emit a JSON string in the terminal
$ yaml2json -o alpha.json alpha.yaml // will save JSON to alpha.json
$ cat alpha.yaml | yaml2json // will emit a JSON string in the terminal
$ cat .travis.yml | yaml2json | jq // will emit nicely formatted JSON

To install:

If you have your shell PATH setup to run executables from your Racket's /bin folder then you can just intall the package with:

$ make install

Otherwise you can build an executable and move it to /usr/local/bin:

$ make makebin

Run the tests:

$ make test

License

LGPL

Racket logo


Copyright (c) 2018 Darren Newton