get-detailed-location
v1.0.4
Published
Get the detailed info including ipV4, ipV5, device and location details of the user.
Downloads
7
Maintainers
Readme
getDetailedLocation
Get the detailed info including ipV4, ipV5, device and location details of the user.
Installation
npm i get-detailed-location
Usage
Import the functions ipv4()
, ipv6()
and locationDetails()
import { ipv4, ipv6, locationDetails } from 'get-detailed-location'
Getting the public IP addresses.
console.log(await ipv4())
console.log(await ipv6())
console.log(await locationDetails())
OR
ipv4().then((data)=>{
console.log(data)
})
ipv6().then((data)=>{
console.log(data)
})
locationDetails().then((data)=>{
console.log(data)
})
For contributions
$ git clone [email protected]:sreenathch/get-detailed-location.git