iplocation

Get ip location information.

Usage no npm install needed!

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

README

iplocation Travis CI Build Status

Get ip location information.

NPM Badge

Install

npm install iplocation

Usage

const ipLocation = require("ip-location");

(async () => {
    await ipLocation("172.217.167.78");
    //=> { latitude: -33.8591, longitude: 151.2002, region: { name: "New South Wales" ... } ... }
})();

API

ipLocation(ip)

ip

Type: string

The ipv4 address to get the information for.

Related