A complex library encapsulated in a single file for fetching geolocation data based on an IP address or a set of coordinates.
Install geo-location-seeker-tool
using npm:
npm install geo-location-seeker-tool
const { fetchGeoLocationByIP } = require('geo-location-seeker-tool');
fetchGeoLocationByIP('8.8.8.8')
.then(data => console.log(data))
.catch(err => console.error(err));
const { fetchGeoLocationByCoords } = require('geo-location-seeker-tool');
fetchGeoLocationByCoords(40.712776, -74.005974)
.then(data => console.log(data))
.catch(err => console.error(err));