1 unstable release
| 0.0.1 | Dec 19, 2019 |
|---|
#217 in #ip
14KB
myip
A simple command line tool to get the ip related information for your host.
Usage
Currently myip only serves as a command line interface to ipinfo to retrieve the public ip related information.
To get public ip
myip ip
12.166.238.132
To get your current city
myip ip city
Chicago
To get full information in JSON format
myip
{
"ip": "12.166.238.132",
"city": "Chicago",
"region": "Illinois",
"country": "US",
"loc": "41.8500,-87.6500",
"org": "AS7018 AT&T Services, Inc.",
"postal": "60666",
"timezone": "America/Chicago",
"readme": "https://ipinfo.io/missingauth"
}
Dependencies
~20MB
~416K SLoC