punycode-cli

1.0.2 • Public • Published

punycode-cli

CLI interface for punycode with similiar options as the base64 CLI tool

Installation

sudo npm install -g punycode-cli

Usage

$ 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)

Examples

UTF-8 domain to ASCII

echo -n "😄.example.com" | punycode;

ASCII domain to UTF-8

echo -n "xn--i28h.example.com" | punycode -D;

Contributing

Feel free

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i punycode-cli

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

5.4 kB

Total Files

5

Last publish

Collaborators

  • bamboocz