Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
service-geoip
Advanced tools
A RabbitMQ microservice wrapping the node-geoip package (geoip-lite on npm).
a RabbitMQ microservice wrapping the node-geoip package (geoip-lite on npm).
npm install service-geoip
npm updatedb
used to build the geo DB. This is not needed when module is used as a client.
docker build .
configuration can be done using env vars
#default
AMQP_URL=amqp://localhost
#default
AMQP_QUEUE=geo:ip
setup env vars and start the container or run npm start
npm start
npm i bunnymq --save
Then in your code:
var bunny = require('bunnymq')(/*config here or use bunnymq's env vars*/).producer;
bunny.produce('geo:ip', '95.130.11.91', { rpc: true })
.then(function(loc){
//use loc object here
});
just send the IP as the message content on the queue you have defined (see #configuration) with contentType set to application/json
Here is a sample stackfile to deploy your microservice (create your tutum repository from the github repo first)
rabbitmq-master:
image: 'tutum/rabbitmq:latest'
environment:
- RABBITMQ_PASS=PASSWORD
service-geoip:
image: 'tutum.co/TUTUM_USER/service-geoip:latest'
environment:
- 'AMQP_URL=amqp://admin:PASSWORD@rabbitmq-master'
links:
- rabbitmq-master
ports:
- '9001:8080'
FAQs
A RabbitMQ microservice wrapping the node-geoip package (geoip-lite on npm).
The npm package service-geoip receives a total of 1 weekly downloads. As such, service-geoip popularity was classified as not popular.
We found that service-geoip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.