/yaml2json

a command line tool convert from yaml to json

Primary LanguageGoMIT LicenseMIT

Description

yaml2json

Features

  • zero config.
  • supports Windows, Linux, macOS, FreeBSD, NetBSD, OpenBSD, Plan 9 etc..

Installation

go get -v github.com/bronze1man/yaml2json

Usage

  • echo "a: 1" | yaml2json
  • yaml2json < 1.yml > 2.json

Notice

  • if you don't know whether your platform is 386 or amd64, use the 386 build...
  • the master branch may rewrite history to save space.
  • the source branch contains the full history of the source code.

Reference