lookip

1.0.1 • Public • Published

LookIP

IP lookup package. Will use different configurable ip-lookup services in future.

Usage

var LookIP = require('../lib');
var lookip = new LookIP();
lookip.lookup('8.8.8.8');

/*
{ range: [ 134744064, 134744319 ],
  country: 'US',
  region: 'CA',
  city: 'Mountain View',
  ll: [ 37.386, -122.0838 ],
  metro: 807 }
*/

Idea

There are many ip lookup packages used different services. Some day I've tried Rails geocoder gem, that has convinient API and use different services (and other gems) for lookup.

Now we at Videoly need that npm package and have started to write it. If you are interested to extend the package, you are welcome, send me PR please.

Now

Now package supports only geoip-lite integration.

Roadmap

I want to add Promises support for make async queries to the IP DB soon. In future I plan add support for another ip-lookup services and make auto download and update MaxMind DB for the package.

Dependents (1)

Package Sidebar

Install

npm i lookip

Weekly Downloads

7

Version

1.0.1

License

ISC

Last publish

Collaborators

  • lancedikson