iplocation
v7.2.0
Published
Get ip location information.
Downloads
12,316
Readme
iplocation
Get ip location information.
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
- iplocation-cli - CLI for this module.