ip2nfo

IP2 geolocation web server

Usage no npm install needed!

<script type="module">
  import ip2nfo from 'https://cdn.skypack.dev/ip2nfo';
</script>

README

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