Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

stanislaw-glogowski/ip2loc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IP2Loc

Unofficial IP2Location Node.js module

Installation

$ npm install ip2loc

Basic usage

var ip2loc = new (require('ip2loc'))({
    paths : {
        ipv4 : <path to IPv4 database>,
        ipv6 : <path to IPv6 database>
    },
    fakeIps : null // array of fake ips
});

console.log(ip2loc.query(<ip>));

You can get sample database on http://www.ip2location.com/developers/nodejs

License

The MIT License

About

Unofficial IP2Location module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published