express-ip2
v1.0.0
Published
Express IP2 geolocation middleware
Downloads
2
Readme
express-ip2
Express middleware to add req.geoip object, which contains results of IP2 database lookup.
Usage
In app.js
const ip2 = require('express-ip2');
app.use(ip2('path/to/db.bin'));
Then, in your routes, check req.geoip
for the lookup results.