yaml2json
This clone uses a pinned version of go-yaml library to support non-standard >>:
yaml construct.
- zero config.
- zero install.
- support windows,linux,Mac os,freebsd,netbsd,openbsd,plan9 platform
go get github.com/sklevenz/yaml2json # get sources and install binary to GOPATH
glide install # install vendor directory
go build # build executable
- find the build of you platform
- run
echo "a: 1" | yaml2json
to see result
cat 1.yml | yaml2json > 2.json
- if you do not know your mashine is 386 or amd64,you can use 386...
- master branch may rewrite history to save space.
- source branch save the history of source code.