Universal IP intelligence tracker. Works on Node.js and Browsers.
npm install geo-inspector> A robust, professional-grade dynamic IP geolocation tracker designed for backend integration. It operates seamlessly regardless of whether the server is hosted on-premises or in the cloud.
require bash
npm install geo-inspector
or
yarn add geo-inspector
`📖 Usage
$3
`js
const {
getFullDetails,
getBasicInfo,
getTimezone,
getConnectionDetails,
getCountryDetails
} = require('geo-inspector');app.get('/api/location', async (req, res) => {
const info = await getFullDetails(req);
res.json(info);
});
`📘 API Methods
- getFullDetails() – returns full IP details
- getBasicInfo() – returns IP, city, country, region, lat/lon
- getTimezone() – returns timezone info
- getConnectionDetails() – returns ISP and connection info
- getCountryDetails() – returns flag, capital, borders, etc.🧠 Example Response
`json
{
"ip": "103.148.74.116",
"success": true,
"country": "Bangladesh",
"city": "Rajshahi",
"timezone": {
"id": "Asia/Dhaka",
"utc": "+06:00"
},
"connection": {
"isp": "Amber IT"
}
}
``---
> Built with ❤️ by Arifur Rahman