Project

xvert

0.0
No release in over a year
Convert between JSON, YAML, TOML, and various other formats.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.6.0
~> 1.2.0
~> 2.2.0
~> 0.2.0
~> 3.2.0
~> 4.1.0
 Project Readme

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 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

License

MIT License

Code of Conduct

CODE_OF_CONDUCT.md