Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redsymbol/json2yaml
Simple command line tool to convert JSON to YAML
https://github.com/redsymbol/json2yaml
Last synced: 4 months ago
JSON representation
Simple command line tool to convert JSON to YAML
- Host: GitHub
- URL: https://github.com/redsymbol/json2yaml
- Owner: redsymbol
- Created: 2016-04-27T21:34:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-06-24T12:57:46.000Z (over 1 year ago)
- Last Synced: 2024-08-01T19:55:49.997Z (7 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 13
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# json2yaml - convert JSON to YAML on command line
A trivial script to convert JSON to YAML.
# Usage
Pipe to stdin:
echo '{"foo": 42}' | json2yaml
Or pass in a file parameter:
json2yaml /path/to/baz.json
The corresponding YAML will be written to standard out.
# Installation
Requires Python 3 and PyYAML.
TODO: Make this easier for someone who's not already an expert in Python to install
For now, you must either create a virtual environment (using
requirements.txt), or install PyYAML some other way onto the
system. Once that's done, you can simply invoke json2yaml on the
command line.# Author
Aaron Maxwell - http://redsymbol.net
# License
Public domain