Skip to content

katsube/showip-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Showip-CLI

A command line tool to display the current global IP address.

INDEX

  1. Installation
  2. Usage
  3. Options
    1. -s, --service

Installation

$ npm install -g showip-cli

Usage

$ showip
203.0.113.1

Options

-s, --service

You can select the service you want to use.

$ showip -s aws
203.0.113.1
service_cd default URL
aws https://checkip.amazonaws.com
google https://domains.google.com/checkip
ifconfigio https://ifconfig.io/ip
ifconfigme https://ifconfig.me/ip
ipaddrshow http://ipaddr.show/

Plan B

In fact, there is a smarter way.

$ vi ~/.bashrc
alias showip='curl https://checkip.amazonaws.com'

License

The MIT License.

About

A command line tool to display the current global IP address.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published