iplocation
TypeScript icon, indicating that this package has built-in type declarations

7.2.0 • Public • Published

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

Package Sidebar

Install

npm i iplocation

Weekly Downloads

3,170

Version

7.2.0

License

MIT

Unpacked Size

8.54 kB

Total Files

8

Last publish

Collaborators

  • richienb
  • roryrjb