Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (14 sloc) 415 Bytes

Wrapper for ipinfodb.com's IP geolocation API.

Install

npm install ipinfodb

Usage

var key = '....';
client = require('ipinfodb')({ key: key });

client.geolocate('106.186.17.133', function (err, res) {
  console.log(res);
});

client.ip2timezoneOffset('106.186.17.133', function (err, timezoneOffset) {
  console.log(timezoneOffset);
});