1.0.10 • Published 6 months ago

ipviewer v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

ipviewer

This is a library for locate IPv4 addresses, using as data source the IPinfo.io free service.

You will need to create an account in IPinfo.io and get your own token (very easy) that look like 8e1441b9******.

At the moment, free plan service allow 50k lookups per month, perfect for little projects.

Installation

Use in terminal

For use in terminal, install globally using npm:

$ npm install ipviewer -g

If you need permissions for global installation:

$ sudo npm install ipviewer -g

Then execute:

$ ipviewer --version

If the installation was successful, this should print the latest version of ipviewer.

Set token

Put your token in ipviewer for start using:

$ ipviewer -t 8e1441b9******

Use

Locate an IP using ipviewer with the -l flag, for example:

# input
$ ipviewer -l 8.8.4.4

# output
IP:  8.8.4.4
City:  Mountain View
Region:  California
Country:  US

For detailed output, use the -v flag:

# input
$ ipviewer -l 8.8.4.4 -v

# output
IP:  8.8.4.4
City:  Mountain View
Region:  California
Country:  US
Postal Code:  94043
Coordinates:  37.4056,-122.0775
ISP:  AS15169 Google LLC
Time Zone:  America/Los_Angeles

Use in Nodejs projects

Soon...

1.0.10

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago