Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alash3al/re-txt
converts text-formats from one to another, it is very useful if you want to re-format a json file to yaml, toml to yaml, csv to yaml, ... etc
https://github.com/alash3al/re-txt
csv json text-transformations toml yaml
Last synced: about 1 month ago
JSON representation
converts text-formats from one to another, it is very useful if you want to re-format a json file to yaml, toml to yaml, csv to yaml, ... etc
- Host: GitHub
- URL: https://github.com/alash3al/re-txt
- Owner: alash3al
- Created: 2021-01-08T13:07:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-17T09:33:54.000Z (11 months ago)
- Last Synced: 2024-08-10T11:02:36.310Z (5 months ago)
- Topics: csv, json, text-transformations, toml, yaml
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 64
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
re-txt
==========
> reformates a text file from a structure to another, i.e: convert from json to yaml, toml to json, ... etcSupported Source Formats
=========================
- json
- yaml
- hcl
- toml
- csvSupported Target Formats
=========================
- json
- yaml
- tomlExamples
=========```bash
# json to yaml using flag
$ re-txt --src example.json json2yaml# json to yaml using stdin pipe
$ cat example.json | re-txt json2yaml# csv to yaml by first converting to json
$ cat example.csv | re-txt csv2json | re-txt json2yaml# csv to yaml by first converting to json
# also merge multiple json files and convert the piped result & them into yaml
$ cat example.csv | re-txt csv2json | re-txt --dest ./result.yaml --src=another1.json --src=another2.json json2yaml
```Installations
==============
- from source: `go get github.com/alash3al/re-txt`
- binary download: go to [there](https://github.com/alash3al/re-txt/releases) and download the binary which support your env