Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 912 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 912 Bytes

NPM version Build Status Dependency Status

This is the pure Node API for reading country and city information from GeoLite2 database file based on node-maxmind-db

Install

$ npm install --save node-geolite2

Usage

var geolite = require('node-geolite2');
geolite.init();
var location = geolite.getGeoDataSync("118.112.56.251");
console.log(location);

License

MIT © zj8487