# node-service-geoip

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

Latest version **1.2.2** (published 2015-10-19) · GPL-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install node-service-geoip
pnpm add node-service-geoip
yarn add node-service-geoip
bun add node-service-geoip
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2015-10-19 |
| First published | 2015-10-19 |
| Weekly downloads | 0 |
| License | GPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dial Once |
| Maintainers | dialonce, jkernech, ky23, pukoren |
| Keywords | geo, ip, geoip, location, maxmind, geoip-lite, rabbitmq |

## Links

- npm: https://www.npmjs.com/package/node-service-geoip
- Repository: https://github.com/dial-once/node-service-geoip
- Homepage: https://github.com/dial-once/node-service-geoip#readme
- Issues: https://github.com/dial-once/node-service-geoip/issues
- npm.io page: https://npm.io/package/node-service-geoip

## Dependencies (2)

- [amqplib](https://npm.io/package/amqplib.md) ^0.4.0
- [geoip-lite](https://npm.io/package/geoip-lite.md) ^1.1.6

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.2.2 (latest) — 2015-10-19
- 1.2.1 — 2015-10-19
- 1.2.0 — 2015-10-19
- 1.1.0 — 2015-10-19
- 1.0.0 — 2015-10-19

## README

# 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
```js
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.

---
_Source: https://npm.io/package/node-service-geoip · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
