Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

service-geoip

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

service-geoip

A RabbitMQ microservice wrapping the node-geoip package (geoip-lite on npm).

  • 1.3.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
Maintainers
1
Weekly downloads
 
Created
Source

node-service-geoip

a RabbitMQ microservice wrapping the node-geoip package (geoip-lite on npm).

install

npm install service-geoip
npm updatedb

configuration

see config.json file.
basically, you just have to specify a broker connexion string and a queue name.

usage

as a microservice

modify the config.json file with your broker/queue config, and then:

npm start

as a client

var lib = require('service-geoip')({ amqp: 'amqp://localhost', queue: 'geo:ip' });
lib.connect().then(function(){
  //connexion logic here
});

lib.send('95.130.11.91').then(function(loc){
  //use loc object here
});

from a compatible amqp broker

just send the IP as the message content on the queue defined in the config.json file.

Keywords

FAQs

Package last updated on 20 Oct 2015

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc