davidtsai / node-geoip2

Maxmind GeoIP2 database reader for geolocating ip addresses.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do you init multiple databases?

mrgoos opened this issue · comments

The init function returns _defaultDB but I can't really call it twice since _defaultDB is global, right?

Construct your own instances instead of using the default: var myDB = new mmdb.MMDB(pathToDB);