Convert between JSON and YAML format files.
npm install fmtconv




> Convert between JSON and YAML format files.



- [x] _Support_ JSON/YAML format files.
- [x] _Convert_ with JSON/YAML format files.
- [x] _Transcode_ with JSON/YAML format strings.
``bash`
npm install -g fmtconv
`bash`
npm install --save fmtconv
`bash
$ fmtconv -h
Usage: fmtconv [-h] [-v] [-c] [-o file] <-i file | file>
Convert between JSON and YAML format files.
Options:
-h, --help output usage information
-V, --version output the version number
-o, --output
-i, --input
-c, --compact compact JSON/YAML format string
--debug debug mode, such as print error tracks
`
Here we cover the most 'useful' methods.
`javascript``
const fmtconv = require('fmtconv')
> Convert between JSON and YAML format files.
The first string sets an input file path,
the second string sets an output file path.
> Transcode JSON to YAML string.
> Transcode YAML to JSON string.