Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
nodeJS driver for libqqwry
C C++ JavaScript Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
libqqwry
.gitignore
Makefile
README.md
index.js
package.json
performance.js
qqwry.cc
qqwry.h
test.js
test_npm.js
wscript

README.md

NodeJS driver for libqqwry

Get geo for ip

Data from QQWry.dat

The c library is base on libqqwry

I'm a beginner with c++, if you find some bugs in it, please post a issue.

Install

npm install qqwry

Usage

Download qqwry.dat from QQWry.dat

var qqwry = require("qqwry");

var qqwry = qqwry.open(__dirname + "/qqwry.dat");
console.log(qqwry.query("115.193.152.250"));
console.log(qqwry.query("222.73.68.35"));
console.log(qqwry.query("220.191.113.36"));
qqwry.close();
Something went wrong with that request. Please try again.