ipinfodb
v0.0.1
Published
Wrapper for ipinfodb.com API (ip to timezone)
Downloads
14
Readme
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);
});