node-geolite2

0.1.7 • Public • Published

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 node-geolite2 = require('node-geolite2');
node-geolite2.init();
var location = node-geolite2.getGeoDataSync("118.112.56.251");
console.log(location);

License

MIT © zj8487

Package Sidebar

Install

npm i node-geolite2

Weekly Downloads

1

Version

0.1.7

License

MIT

Last publish

Collaborators

  • zj8487