Xvert

Gem Code Climate maintainability Codecov GitHub Workflow Status GitHub

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 jt              # Convert JSON to TOML
  xvert jy              # Convert JSON to YAML
  xvert tj              # Convert TOML to JSON
  xvert ty              # Convert TOML to YAML
  xvert yj              # Convert YAML to JSON
  xvert yt              # Convert YAML to TOML

JSON to TOML

$ xvert jt < foo.json

JSON to YAML

$ xvert jy < foo.json

TOML to JSON

$ xvert tj < foo.toml

TOML to YAML

$ xvert ty < foo.toml

YAML to JSON

$ xvert yj < foo.yaml

YAML to TOML

$ xvert yt < foo.yaml

License

MIT License

Code of Conduct

CODE_OF_CONDUCT.md