Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sentriz/rsl
- Owner: sentriz
- License: mit
- Created: 2022-09-14T21:59:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T12:59:35.000Z (9 months ago)
- Last Synced: 2024-12-27T11:03:49.612Z (7 days ago)
- Language: Go
- Size: 35.2 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
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