DPDK Architecture  ->  Bootstrap (v3.0.5)

Express GeoIP
>= v1.2.0

Express 4 middleware to add req.countryCode, which is the ISO alpha 2 country code for a request.

Features

  • Includes the default function and defaults to 'unknown'

Bootstrap

Config

No config implemented

Implementation

const expressGeoIP = require('express-geoip');

this.server.use(expressGeoIP('unknown').getCountryCodeMiddleware);

Usage

No specific usage available

Links

GitHub: https://github.com/mikemaccana/express-geoip
NPM: https://www.npmjs.com/package/express-geoip

Last modifiedFriday, April 30, 2021, 12:00:21 PM UTC
Last authorColin van Eenige
Commit ID4c7a701