Skip to content

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

Notifications You must be signed in to change notification settings

alash3al/re-txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

re-txt

reformates a text file from a structure to another, i.e: convert from json to yaml, toml to json, ... etc

Supported Source Formats

  • json
  • yaml
  • hcl
  • toml
  • csv

Supported Target Formats

  • json
  • yaml
  • toml

Examples

# 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 and download the binary which support your env

About

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

Topics

Resources

Stars

Watchers

Forks

Languages