geoiplookup

Get location from ip

Usage no npm install needed!

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

README

Install

npm i --save geoiplookup

 Usage

var getLocationFromIp = require('./index');

var ip = "176.240.155.30";
getLocationFromIp(ip)
  .then((data) => {
    console.log(data);
  })

Output

{ range: [ 2968558336, 2968558591 ], country: 'TR', region: '20', city: 'Denizli', ll: [ 37.7742, 29.0875 ], metro: 0 }