Socket
Book a DemoInstallSign in
Socket

lookip

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lookip

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

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

ip

FAQs

Package last updated on 15 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.