UNPKG

ipcopy

Version:

Copy local/public IP-address into clipboard

40 lines (21 loc) 762 B
# ipcopy <a href="https://www.npmjs.com/package/ipcopy"><img src="https://img.shields.io/npm/v/ipcopy.svg?sanitize=true" alt="Version"></a> Copy the local / public ip address into clipboard ###### Supports: macOS, Windows, Linux, OpenBSD, FreeBSD, Android with Termux. ## Install npm install -g ipcopy ## Usage ➜ cip === Copied to Pasteboard === 192.168.1.100 ➜ pubip === Copied to Pasteboard === 13.250.177.223 ➜ ipcopy ? Choose a IP-address to copy: (Use arrow keys) ❯ 192.168.1.100 13.250.177.223 # set the public IP return server URL. ➜ cip -ips "cip.cc|ipinfo.io|ip.sb|ifconfig.io" ## Related - [clipboardy](https://github.com/sindresorhus/clipboardy) - API for this module