ip2nfo

1.2.3 • Public • Published

ip2nfo

npm version npm download Build Status Greenkeeper badge

IP2 geolocation web server

Install & Running

git clone https://github.com/honzahommer/ip2nfo.git
cd ip2nfo
npm install
npm start

or

npm install -g ip2nfo
ip2nfo --port 3000

or

const ip2nfo = require('ip2nfo');
ip2nfo.start(3000);

Tests

npm test

Endpoints

curl localhost:3000
curl localhost:3000/hostname
curl localhost:3000/1.1.1.1
curl localhost:3000/1.1.1.1/hostname
curl localhost:3000/8.8.8.8/distance/9.9.9.9

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i ip2nfo

Weekly Downloads

5

Version

1.2.3

License

MIT

Unpacked Size

13.5 kB

Total Files

17

Last publish

Collaborators

  • honzahommer