CLI interface for punycode with similiar options as the base64 CLI tool
sudo npm install -g punycode-cli
$ punycode --help
Usage: /usr/local/bin/punycode [-hD] [-i in_file] [-o out_file]
-h, --help display this message
-D, --decode decodes input
-i, --input input file (default: "-" for stdin)
-o, --output output file (default: "-" for stdout)
UTF-8 domain to ASCII
echo -n "😄.example.com" | punycode;
ASCII domain to UTF-8
echo -n "xn--i28h.example.com" | punycode -D;
Feel free