Need help with GeoIP?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

kuno
414 Stars 89 Forks GNU Lesser General Public License v2.1 745 Commits 17 Opened issues

Description

GeoIP binding for nodejs(>=0.10) and iojs

Services available

!
?

Need anything else?

Contributors list

# 284,424
JavaScr...
Shell
Kotlin
Android
165 commits
# 362,236
JavaScr...
C
Shell
ceph
4 commits
# 20,791
C++
node
Node.js
TeX
4 commits
# 436,057
JavaScr...
Shell
amazon
billing
3 commits
# 526,198
Erlang
C
Shell
2 commits
# 153,068
HTML
Python
Redis
node
2 commits
# 29,712
npm-scr...
React
scene-g...
ESLint
1 commit
# 15,985
JavaScr...
Ruby
nokogir...
travis
1 commit
# 420,605
Python
openapi
HTML
static-...
1 commit
# 304,665
HTML
Shell
Python
React
1 commit
# 308,134
Rails
json-da...
Shell
Python
1 commit
# 12,257
autohot...
ahk
bitwise...
Nette
1 commit
# 612,533
JavaScr...
Shell
React
CSS
1 commit

GeoIP binding for nodejs(>=0.10) and iojs

NPM version Build status Dependencies Status Bitdeli Badge

Get geolocation information based on domain or IP address.

Limitations

Since this module required to compile geoip c library during the installtion, due to the difficulty of compilifa this c library on windows, currenlty, this module can not be used on windows, yet.

I recommend that choosing a pure javascript implementation instead,

node-geoip
maybe your best candicate.

Technical Architecture

new_architecture

Memory leak issue

As up to the version 0.4.7 (commit 22dadd98646f75318412b54b3de90cc079d34b1d), there will be some memory leak when new a object from GeoIP class.

Here is the report, I'll update it frequently.

Fortunately, the number of leaked bytes is not huge, and you wont new a object very offen.

If you are willing to fix this but, please fork this project.

Need support special database?

Corrently, this package supports the most common databases from MaxMind.

But, it still a lot of special databases out there.

Since I am not a user of any product/service of maxmind, if you require this pacakge to support special db, please make sure you can delivery the testing db and the ip address/domain that can be used to against the db.

Installation

[sudo] npm install geoip [-g]

Usage

See usage doc.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.