A useless API for @xmarcos/enchinito using Cloudflare Workers.
curl -s "https://enchinito-api.xmarcos.workers.dev/enchinito/Sudo%20make%20me%20a%20sandwich" | jq .
# {
# "input": "Sudo make me a sandwich",
# "output": "Sidi miki mi i sindwich",
# "version": "0.1.0"
# }You can also get the response in text/plain or application/xml.
# pipe-friendly text
curl -s "https://enchinito-api.xmarcos.workers.dev/enchinito/Sudo%20make%20me%20a%20sandwich" -H "Accept: text/plain" | rev
# hciwdnis i im ikim idiS
# verbose xml, if you are into that
# brew install python-yq
curl -s "https://enchinito-api.xmarcos.workers.dev/enchinito/Sudo%20make%20me%20a%20sandwich" -H "Accept: application/xml" | xq
# <data>
# <input>Sudo make me a sandwich</input>
# <output>Sidi miki mi i sindwich</output>
# <version>0.1.0</version>
# </data># needs node v16+
npm install -g wrangler
npm installwrangler dev
# 🤞Conventional Commits are enforced using a hook but there is no
prepare-commit-msgwizard. You can donpm run commitif you need that.
→ https://enchinito-api.xmarcos.workers.dev/
wrangler publish
# tail prod logs
wrangler tail