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": "2.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>2.1.0</version>
# </data>All development tasks are powered by Docker to ensure environment parity.
docker compose updocker compose run --rm app npm testCLOUDFLARE_API_TOKEN=your_token_here docker compose run --rm app npx wrangler deploydocker compose run --rm app npx wrangler tailConventional Commits are enforced using a hook. You can run
docker compose run --rm app npm run commitif you need a wizard.
