Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Node.js wrapper for ipinfodb.com API (IP to timezone)
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
README.md
index.js
package.json

README.md

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);
});
Something went wrong with that request. Please try again.