New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ipinfo-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipinfo-cli

Get ip information using command line

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

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                      │
		└──────────┴──────────────────────────────────────────┘

ipinfo - API for this module

License

MIT © Chintan Radia

Keywords

ipinfo

FAQs

Package last updated on 02 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts