• Your shopping cart is empty!

IP2Location IP Geolocation Node.js Module

This IP Geolocation module is a Node.js module to support all IP2Location™ database products. It has been optimized for speed and memory utilization. Developers can use the module to query all IP2Location™ binary databases for applications written for the Node.js platform.

  1. Run npm install ip2location-nodejs in your command prompt.
Sample Codes
var ip2loc = require("ip2location-nodejs");


testip = ['', '2404:6800:4001:c01::67', '2001:0200:0102:0000:0000:0000:0000:0000', '2001:0200:0135:0000:0000:0000:0000:0000', '2001:0200:017A:0000:0000:0000:0000:0000'];
for (var x = 0; x < testip.length; x++) {
	result = ip2loc.IP2Location_get_all(testip[x]);
	for (var key in result) {
		console.log(key + ": " + result[key]);