Express 4 middleware to add req.countryCode, which is the ISO alpha 2 country code for a request.
No config implemented
const expressGeoIP = require('express-geoip');
this.server.use(expressGeoIP('unknown').getCountryCodeMiddleware);
No specific usage available
GitHub: https://github.com/mikemaccana/express-geoip
NPM: https://www.npmjs.com/package/express-geoip
Last modified | Friday, April 30, 2021, 12:00:21 PM UTC |
Last author | Colin van Eenige |
Commit ID | 4c7a701 |