A command line tool to easily convert YAML to JSON
Pass it a YAML file and it'll output JSON
$ yaml2json examples/basic.yml
{"age":30,"human":true,"name":"John"}
It will return an exit code if it fails to succesfully parse the YAML.
Running the build script will create 2 files in the dist
folder. One for OSX and one for Linux.
$ ./scripts/build
Building yaml2json π¨
Compiling for OSX
π dist/yaml2json-darwin-amd64
Compiling for Linux
π dist/yaml2json-linux-amd64
All done! β
git clone git@github.com:buildkite/yaml2json.git
cd yaml2json
direnv allow
go run main.go examples/basic.yml
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) 2015 Keith Pitt, Buildkite Pty Ltd. See LICENSE for details.