An open API service indexing awesome lists of open source software.

https://github.com/koki-develop/xvert

↔️ Convert between JSON, YAML, TOML, and various other formats.
https://github.com/koki-develop/xvert

cli gem ruby

Last synced: 10 months ago
JSON representation

↔️ Convert between JSON, YAML, TOML, and various other formats.

Awesome Lists containing this project

README

          

# Xvert

[![Gem](https://img.shields.io/gem/v/xvert?logo=ruby&logoColor=%23CC342D)](https://rubygems.org/gems/xvert)
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/koki-develop/xvert?logo=codeclimate)](https://codeclimate.com/github/koki-develop/xvert)
[![Codecov](https://img.shields.io/codecov/c/github/koki-develop/xvert?logo=codecov)](https://app.codecov.io/gh/koki-develop/xvert)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/koki-develop/xvert/main.yml?logo=github)](https://github.com/koki-develop/xvert/actions/workflows/main.yml)
[![GitHub](https://img.shields.io/github/license/koki-develop/xvert)](./LICENSE.txt)

Convert between JSON, YAML, TOML, and various other formats.

## Installation

```console
$ gem install xvert
```

## Usage

```console
$ 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-json)
- [JSON to TOML](#json-to-toml)
- [JSON to XML](#json-to-xml)
- [JSON to YAML](#json-to-yaml)
- [TOML to JSON](#toml-to-json)
- [TOML to TOML](#toml-to-toml)
- [TOML to XML](#toml-to-xml)
- [TOML to YAML](#toml-to-yaml)
- [XML to JSON](#xml-to-json)
- [XML to TOML](#xml-to-toml)
- [XML to XML](#xml-to-xml)
- [XML to YAML](#xml-to-yaml)
- [YAML to JSON](#yaml-to-json)
- [YAML to TOML](#yaml-to-toml)
- [YAML to XML](#yaml-to-xml)
- [YAML to YAML](#yaml-to-yaml)

### JSON to JSON

```console
$ xvert jj < foo.json
```

![](./assets/jj.gif)

### JSON to TOML

```console
$ xvert jt < foo.json
```

![](./assets/jt.gif)

### JSON to XML

```console
$ xvert jx < foo.json
```

![](./assets/jx.gif)

### JSON to YAML

```console
$ xvert jy < foo.json
```

![](./assets/jy.gif)

### TOML to JSON

```console
$ xvert tj < foo.toml
```

![](./assets/tj.gif)

### TOML to TOML

```console
$ xvert tt < foo.toml
```

![](./assets/tt.gif)

### TOML to XML

```console
$ xvert tx < foo.toml
```

![](./assets/tx.gif)

### TOML to YAML

```console
$ xvert ty < foo.toml
```

![](./assets/ty.gif)

### XML to JSON

```console
$ xvert xj < foo.xml
```

![](./assets/xj.gif)

### XML to TOML

```console
$ xvert xt < foo.xml
```

![](./assets/xt.gif)

### XML to XML

```console
$ xvert xx < foo.xml
```

![](./assets/xx.gif)

### XML to YAML

```console
$ xvert xy < foo.xml
```

![](./assets/xy.gif)

### YAML to JSON

```console
$ xvert yj < foo.yaml
```

![](./assets/yj.gif)

### YAML to TOML

```console
$ xvert yt < foo.yaml
```

![](./assets/yt.gif)

### YAML to XML

```console
$ xvert yx < foo.yaml
```

![](./assets/yx.gif)

### YAML to YAML

```console
$ xvert yy < foo.yaml
```

![](./assets/yy.gif)

## License

[MIT License](./LICENSE.txt)

## Code of Conduct

[CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md)