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.
- Host: GitHub
- URL: https://github.com/koki-develop/xvert
- Owner: koki-develop
- License: mit
- Created: 2023-05-07T01:35:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T15:16:20.000Z (10 months ago)
- Last Synced: 2025-04-03T16:28:36.206Z (10 months ago)
- Topics: cli, gem, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/xvert
- Size: 1.41 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Xvert
[](https://rubygems.org/gems/xvert)
[](https://codeclimate.com/github/koki-develop/xvert)
[](https://app.codecov.io/gh/koki-develop/xvert)
[](https://github.com/koki-develop/xvert/actions/workflows/main.yml)
[](./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
```

### JSON to TOML
```console
$ xvert jt < foo.json
```

### JSON to XML
```console
$ xvert jx < foo.json
```

### JSON to YAML
```console
$ xvert jy < foo.json
```

### TOML to JSON
```console
$ xvert tj < foo.toml
```

### TOML to TOML
```console
$ xvert tt < foo.toml
```

### TOML to XML
```console
$ xvert tx < foo.toml
```

### TOML to YAML
```console
$ xvert ty < foo.toml
```

### XML to JSON
```console
$ xvert xj < foo.xml
```

### XML to TOML
```console
$ xvert xt < foo.xml
```

### XML to XML
```console
$ xvert xx < foo.xml
```

### XML to YAML
```console
$ xvert xy < foo.xml
```

### YAML to JSON
```console
$ xvert yj < foo.yaml
```

### YAML to TOML
```console
$ xvert yt < foo.yaml
```

### YAML to XML
```console
$ xvert yx < foo.yaml
```

### YAML to YAML
```console
$ xvert yy < foo.yaml
```

## License
[MIT License](./LICENSE.txt)
## Code of Conduct
[CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md)