CLI tools for converting JSON to YAML and vice versa
npm install yaml-utils
CLI tools for converting JSON to YAML and vice versa.
This package provides two bin scripts:
YAML is a superset of JSON, so there are lots of ways to convert JSON to YAML.
But one is better than none.
json2yaml < package.json
> name: scripts
> version: 0.2.0
> description: Handy scripts
> keywords:
> - scripts
> ...
Read in YAML and output JSON.
cat simple_spec.yaml | yaml2json | jq . > simple_spec.json
Copyright © 2014–2018 Christopher Brown.
MIT Licensed.