| name | yaml-convert |
| description | Use this skill when the user wants to convert between YAML and JSON. |
YAML-Convert Plugin
Command-line utility for converting between YAML and JSON.
Commands
File Conversion
yaml-convert file convert — Convert between YAML and JSON
Usage Examples
- "yaml-convert file convert --input config.yaml --output config.json --json"
- "yaml-convert file convert --input config.json --output config.yaml --yaml"
Installation
npm install -g yaml-convert
Examples
yaml-convert --input file.yaml --output file.json
yaml-convert --input file.json --output file.yaml --yaml
yaml-convert --input file.yaml --pretty
cat file.yaml | yaml-convert > file.json
yaml-convert --input file.yaml --es6
yaml-convert --input file.yaml --node
yaml-convert --input file.yaml --output output.yaml --keep
Key Features
- YAML to JSON conversion
- JSON to YAML conversion
- Pretty printing
- ES6 module output
- Node.js module output
- Stdin/stdout support
- Preserve YAML styling