Breaking changes:
geoip.lookup
dose not return range
infomation any more
- remove
geoip.pretty
and geoip.cmp
method
- database structure is different from v4
- need NodeJs version >= 10.20
- cli parameter name and environment variable name are changed (old name still work as alias)
New Features:
- add
geoip.clean
, geoip.reloadDatabase
, geoip.reloadDatabaseSync
which have the same functionality as geoip-lite
- database size is smaller than v4, it makes less memory usage and faster startup and faster lookup.
- you can use ip-location-db database, after v4.2.126
geoip.lookup
return more information by using Countries database as
{
country: 'CN',
name: 'China',
native: '中国',
continent: 'AS',
continent_name: 'Asia',
phone: [ 86 ],
capital: 'Beijing',
currency: [ 'CNY' ],
languages: [ 'zh' ],
}