New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

geoip-database

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geoip-database

GeoLite2 databases packaged for npm

latest
Source
npmnpm
Version
1.0.97
Version published
Weekly downloads
170
-12.82%
Maintainers
1
Weekly downloads
 
Created
Source

geoip-database

Build Status

GeoLite2 databases packaged for npm. Contains GeoLite2-City.mmdb and GeoLite2-Country.mmdb files.

Install

npm install geoip-database

Usage

Ideally used together with maxmind or other geoip module that requires geoip database installed separately.

const database = require('geoip-database');
const maxmind = require('maxmind');
const cityLookup = maxmind.openSync(database.city);

const {city, country, location} = cityLookup.get('83.208.93.244');
console.log(city.names.en); // Prague

License

The GeoLite2 databases are distributed under the Creative Commons Attribution-ShareAlike 4.0 International License.

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

FAQs

Package last updated on 25 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts