Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sentriz/rsl

reserialise: lossy but versatile conversion between data serialisation formats
https://github.com/sentriz/rsl

Last synced: 3 days ago
JSON representation

reserialise: lossy but versatile conversion between data serialisation formats

Awesome Lists containing this project

README

        

rsl


reserialise: lossy but versatile conversion between data serialisation formats

---

### installation

```
$ go install go.senan.xyz/rsl@latest
```

### usage

##### command line

```
$ rsl
```

##### available formats

- **csv**
- **csv-ph** (csv with generated pseudo-header)
- **tsv**
- **tsv-ph** (tsv with generated pseudo-header)
- **ini**
- **js** (javascript objects, decode only)
- **json**
- **toml**
- **xml** (lossy support for arbitrary objects)
- **xml-std** (lossless but limited)
- **yaml**

### examples

```shell
$ rsl toml csv some-csv.csv
```

```shell
$ cat example.json
[
{
"name": "jim",
"addr": "dublin"
},
{
"name": "miguel",
"addr": "space"
}
]
```

```shell
$ rsl json json
Volvo
Saab
Opel
Audi

```

```shell
$ rsl xml json