Negligible Participation Metric
Wondering what’s next for npm?Check out our public roadmap! »

iplocationTypeScript 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

Install

npm i iplocation

DownloadsWeekly Downloads

4,901

Version

7.2.0

License

MIT

Unpacked Size

8.54 kB

Total Files

8

Last publish

Collaborators

  • avatar
  • avatar