Because you are 😅 lazy as fuck 😅 and don't want to remember any command lines or set alias for your terminal.
Install globally using npm
npm i log-ip -g
-
Type
ip
in your ternimal (Compatible with both Windows and Unix)ip
-
Done! You will get:
{ "ip": "113.116.xx.xx", "city": "Shenzhen", "region": "Guangdong", "country": "CN", "loc": "22.5455,114.0683", "timezone": "Asia/Shanghai", "org": "AS4134 CHINANET-BACKBONE", }