Pre-packaged MaxMind GeoLite2 City database for node-maxmind (v1.0.3-20191224). Provides IP-to-city geolocation data including continent, country, and approximate latitude/longitude. Updated weekly. Designed for use with the `maxmind` npm package; this package only contains the database binary, not the lookup engine. Requires manual license key registration with MaxMind due to December 2019 license changes. Note: latitude/longitude are approximate and should not be used for precise location.
npm install maxmind-cityNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows loading the maxmind package, opening the GeoLite2 City database, and performing an IP lookup.
Sign up at https://www.maxmind.com/en/geolite2/signup and use a newer package version or manually download the database.
npm install maxmind maxmind-city
If using maxmind v3+, use async/await: const lookup = await maxmind.open(require('maxmind-city'));Consider manual database downloads from MaxMind and use maxmind.openBuffer() to load custom files.
Always check accuracy_radius field and use latitude/longitude only for regional analysis, not precise geolocation.
npm install maxmind
For maxmind v2: use maxmind.open() synchronous; for v3+: use async/await with maxmind.open().
Use require('maxmind-city') directly as argument; it returns the path to the .mmdb file.