country-detector
v0.2.6
Published
Country detector middleware for Express.js via maxmind-db-reader
Downloads
6
Readme
Installation
npm install country-detector
Usage
app.use countryDetector.getMiddleware('./GeoLite2-City.mmdb', {
cookieName: 'country'
cookieMaxAge: 946707779241
})
...
console.log req.country