This package has been deprecated

Author message:

WARNING: This project has been renamed to service-geoip. Install using service-geoip instead.

node-service-geoip

1.2.2 • Public • Published

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.

Package Sidebar

Install

npm i node-service-geoip

Weekly Downloads

0

Version

1.2.2

License

GPL-2.0

Last publish

Collaborators

  • mrister
  • dial-once
  • ky23
  • jkernech