sindresorhus / Public Ip Cli
Licence: mit
Get your public IP address
Stars: ✭ 204
Programming Languages
javascript
184084 projects - #8 most used programming language
public-ip-cli
Get your public IP address
Install
$ npm install --global public-ip-cli
Usage
$ public-ip --help
Usage
$ public-ip
Options
--ipv4, -4 Return the IPv4 address (default)
--ipv6, -6 Return the IPv6 address
--https, -h Use HTTPS instead of DNS
--timeout=<ms>, -t Timeout in milliseconds (default: 5000)
Example
$ public-ip
46.5.21.123
$ time public-ip
46.5.21.123
real 0.08s
user 0.05s
sys 0.02s
Maintainers
Related
- public-ip - API for this module
License
MIT © Sindre Sorhus
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].