Xvert
Convert between JSON, YAML, TOML, and various other formats.
Installation
$ gem install xvert
Usage
$ xvert help
Commands:
xvert --version, -v # Print Xvert version
xvert help [COMMAND] # Describe available commands or one specific command
xvert jj # Convert JSON to JSON
xvert jt # Convert JSON to TOML
xvert jx # Convert JSON to XML
xvert jy # Convert JSON to YAML
xvert tj # Convert TOML to JSON
xvert tt # Convert TOML to TOML
xvert tx # Convert TOML to XML
xvert ty # Convert TOML to YAML
xvert xj # Convert XML to JSON
xvert xt # Convert XML to TOML
xvert xx # Convert XML to XML
xvert xy # Convert XML to YAML
xvert yj # Convert YAML to JSON
xvert yt # Convert YAML to TOML
xvert yx # Convert YAML to XML
xvert yy # Convert YAML to YAML
- JSON to JSON
- JSON to TOML
- JSON to XML
- JSON to YAML
- TOML to JSON
- TOML to TOML
- TOML to XML
- TOML to YAML
- XML to JSON
- XML to TOML
- XML to XML
- XML to YAML
- YAML to JSON
- YAML to TOML
- YAML to XML
- YAML to YAML
JSON to JSON
$ xvert jj < foo.json
JSON to TOML
$ xvert jt < foo.json
JSON to XML
$ xvert jx < foo.json
JSON to YAML
$ xvert jy < foo.json
TOML to JSON
$ xvert tj < foo.toml
TOML to TOML
$ xvert tt < foo.toml
TOML to XML
$ xvert tx < foo.toml
TOML to YAML
$ xvert ty < foo.toml
XML to JSON
$ xvert xj < foo.xml
XML to TOML
$ xvert xt < foo.xml
XML to XML
$ xvert xx < foo.xml
XML to YAML
$ xvert xy < foo.xml
YAML to JSON
$ xvert yj < foo.yaml
YAML to TOML
$ xvert yt < foo.yaml
YAML to XML
$ xvert yx < foo.yaml
YAML to YAML
$ xvert yy < foo.yaml