NPM package enables you to easily get client location and ip address using Ipify API and Geoplugin API.
npm i location-ip
import locationip from 'location-ip/location-ip.js'
locationip().then(data=>console.log(data))
{
ip: client-ip,
location: {
place: client-place,
region: client-region,
countryCode: client-countryCode,
latitude: location-latitude,
longitude: location-longitude
}
}