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

maxmind-native

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maxmind-native

Simple and quick search on maxmind files to identify the country.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

node-maxmind-native

Simple and quick search on maxmind files to identify the country.

Fork for https://github.com/roymap/node-maxmind-native with new node.js version support and build in maxming geoip file.

Install

npm install maxmind-native

Example

// build in maxmind file
var geoip = new require('maxmind-native').GeoIP();
// custom maxmind file
var geoip = new require('maxmind-native').GeoIP('GeoIP.dat');

var country = geoip.getCountry(ip); // '173.194.32.200' -> 'United States'
var country = geoip.getCountry(ip, 'code3'); // '173.194.32.200' -> 'USA'
var country = geoip.getCountry(ip, 'code'); // '173.194.32.200' -> 'US'

Keywords

maxmind

FAQs

Package last updated on 16 Oct 2012

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