Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (17 loc) · 581 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 581 Bytes

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)         # 成都
});