get-ipinfo

Get IP info using ipinfo.io

Github stars Tracking Chart

get-ipinfo

Get IP info using ipinfo.io

Install

$ npm install --save get-ipinfo

Usage

var IPinfo = require('get-ipinfo');

/**
 * Get your IP info
 */

IPinfo(function(err, ip) {
  console.log(ip);
});

/**
 * Get defined IP info
 */

IPinfo('1.3.3.7', function(err, ip) {
  console.log(ip);
});

CLI

$ npm install --global get-ipinfo
$ ipinfo --help

  Usage
    $ ipinfo
    
    {
      "ip": "90.111.11.111"
      "hostname": "Hostname"
      "city": "Stockholm"
      "region": "Stockholms Lan"
      "country": "SE"
      "loc": "59.32932318.068581"
      "org": "Adroiter AB"
      "postal": "1337"
    }

  Example
    $ ipinfo --ip 1.3.3.7
    $ ipinfo --type country
    
  Options
    --ip    Specify an IP address
    --type  Type of information: ip, hostname, city, region, country, loc, org, postal

License

MIT © Adroiter

Main metrics

Overview
Name With Owneradroiter/get-ipinfo
Primary LanguageElm
Program languageJavaScript (Language Count: 1)
Platform
License:BSD 3-Clause "New" or "Revised" License
所有者活动
Created At2017-10-28 22:37:59
Pushed At2021-10-13 11:08:23
Last Commit At2021-07-31 10:07:09
Release Count3
Last Release Name2.0.1 (Posted on 2020-05-21 16:19:08)
First Release Name1.0.0 (Posted on 2018-03-16 15:45:32)
用户参与
Stargazers Count456
Watchers Count13
Fork Count44
Commits Count537
Has Issues Enabled
Issues Count45
Issue Open Count27
Pull Requests Count22
Pull Requests Open Count5
Pull Requests Close Count4
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private