tel
Parse, check and format phone numbers from the shell. One static binary, no network.
$ tel +44 20 7946 0958
+44 20 7946 0958 GB fixed line
$ echo "8 (912) 345-67-89" | tel --region RU --format e164
+79123456789
$ tel --check 555-0100
invalid: too short for region US
Install
curl -fsSLO https://tel.cv2.sh/dl/tel-0.9.2-linux-amd64.tar.gz
tar xf tel-0.9.2-linux-amd64.tar.gz && sudo mv tel /usr/local/bin/
Builds for Linux and macOS (amd64, arm64). Windows works through WSL.
Why
I kept pasting numbers from CRM exports into a spreadsheet just to fix the formatting. tel wraps the libphonenumber metadata in a small CLI that is happy in pipes and scripts.