mmalcek / bafi

Universal JSON, BSON, YAML, CSV, XML, mt940 converter with templates
https://mmalcek.github.io/bafi/
MIT License
104 stars 6 forks source link
bson convert converter csv csv-to-json csv-to-xml formatter json json-to-xml mt940 parser xml xml-to-json yaml

Go CodeQL Go Report Card License Mentioned in Awesome Go GitHub tag (latest by date)

Universal JSON, BSON, YAML, CSV, XML, mt940 translator to ANY format using templates

Key features

Documentation https://mmalcek.github.io/bafi/

Releases (Windows, MAC, Linux) https://github.com/mmalcek/bafi/releases

usage:

bafi.exe -i testdata.xml -t template.tmpl -o output.txt

or

curl.exe -s https://api.predic8.de/shop/customers/ | bafi.exe -f json -t "?{{toXML .}}"

or

curl -s https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml | ./bafi -f xml -gk myChatGPTToken -gq "What's the current CZK rate?"

More examples and description in documentation

If you like this app you can buy me a coffe ;)

Buy Me a Coffee at ko-fi.com