https://github.com/mhutter/yaml2json
Convert YAML to JSON
https://github.com/mhutter/yaml2json
cli golang json yaml
Last synced: 5 months ago
JSON representation
Convert YAML to JSON
- Host: GitHub
- URL: https://github.com/mhutter/yaml2json
- Owner: mhutter
- License: mit
- Archived: true
- Created: 2019-05-02T08:33:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-18T14:42:14.000Z (about 4 years ago)
- Last Synced: 2024-11-16T14:36:07.365Z (over 1 year ago)
- Topics: cli, golang, json, yaml
- Language: Go
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yaml2json
[](https://travis-ci.com/mhutter/yaml2json)
Convert YAML to JSON
## Usage
$ yaml2json [] [infile [outfile]]
ARGUMENTS:
infile
File to read from (defaults to STDIN)
outfile
File to write to (defaults to STDOUT)
FLAGS:
-p Pretty-print (indent) output
-v Print version and exit
## Installation
**Homebrew tap** (macOS)
brew install mhutter/tap/yaml2json
**go get** (any OS)
go get -u github.com/mhutter/yaml2json
Or [download a pre-built binary](https://github.com/mhutter/yaml2json/releases).
## License
MIT (see LICENSE)
---
> [Manuel Hutter](https://hutter.io) -
> GitHub [@mhutter](https://github.com) -
> Twitter [@dratir](https://twiter.com/dratir)