1.0.0 • Published 6 years ago

node-ipgeo v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

node-ipgeo

Geo info retriver for ipv4 address using chinese taobao service.

Inspired by huacnlee/ip-location.

Goal

Retrieve geo info for ip address via ip.taobao.com .

Limit

  • The official limit: for every user, qps < 10. ref

Usage

var ipgeo = require('../index');


ipgeo.query('182.138.127.93', (d) => {
    console.log(d.country)      # 中国
    console.log(d.region)       # 四川
    console.log(d.city)         # 成都
});