Skip to content

beatfreaker/ipinfo-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ipinfo-cli

Get information about an IP address using command line with the help of ipinfo.io's API.

installation

> npm install ipinfo-cli --global

Usage

> ipinfo-cli --help

	Usage
		- If an IP address is passed, information about it is
		  fetched and displayed.
		- Otherwise, the current public address will be used.

	Examples

		> ipinfo
		> ipinfo 8.8.8.8

	Result

		┌──────────┬──────────────────────────────────────────┐
		│ Title    │ Value                                    │
		├──────────┼──────────────────────────────────────────┤
		│ ip       │ 8.8.8.8                                  │
		├──────────┼──────────────────────────────────────────┤
		│ hostname │ www.xyz.com                              │
		├──────────┼──────────────────────────────────────────┤
		│ city     │ Mountain View                            │
		├──────────┼──────────────────────────────────────────┤
		│ region   │ California                               │
		├──────────┼──────────────────────────────────────────┤
		│ country  │ US                                       │
		├──────────┼──────────────────────────────────────────┤
		│ loc      │ 37.4192,-122.0574                        │
		├──────────┼──────────────────────────────────────────┤
		│ org      │ XYZ Inc.                                 │
		├──────────┼──────────────────────────────────────────┤
		│ postal   │ 99999                                    │
		├──────────┼──────────────────────────────────────────┤
		│ timezone │ America/Los_Angeles                      │
		└──────────┴──────────────────────────────────────────┘

Related

ipinfo - API for this module

License

MIT © Chintan Radia

About

💻 Get your systems IP information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages