What-The-Format?

Look up numbers, identifiers, and formats

WTF: Terminal Edition

If you'd like to use WTF from your terminal, simply make an HTTP request with the User-Agent header set to your $TERM environment variable.

curl https://format.wtf/192.168.0.1/16 --user-agent $TERM

Why not make this a function? If you use bash or zsh:

function wtf() {
  curl https://format.wtf/"$1" --user-agent $TERM
}

Or, if you use fish:

function wtf -a query
  curl https://format.wtf/$query --user-agent $TERM
end