quick'n'dirty name generator using docker's namesgenerator pkg
Uses Docker's names generator package to generate names anywhere.
You get a random name running:
# downloads the binary and executes it locally:
curl -sfL https://git.io/name-generator | sh
# get name from a serverless function:
curl -sf https://names.caarlos0.dev
# get name from a serverless function with a different separator:
curl -sf 'https://names.caarlos0.dev?separator=-'
# get name from a serverless function (json):
curl -sf -H 'accept: application/json' https://names.caarlos0.dev
The source is the
run.sh
file in the root of this repo.