Command-line utilities to convert YAML files to JSON files and vice versa.
js-yaml-cli is based on js-yaml and provides a more sophisticated command-line interface than that one js-yaml comes along with. js-yaml-cli can be used, for example, to set-up a WebStorm file watcher for YAML files.
Currently, js-yaml-cli depends on js-yaml 3.1.0
The scripts of js-yaml-cli run under Node.js.
npm install -g js-yaml-cli
If you want you can install js-yaml-cli locally (type
npm install js-yaml-cli in the project directory you want)
but a global installation is the recommended way.
Once installed, you should have access to the commands
yaml2json -h shows:
json2yaml is still in development. It should not be used.