geo-inspector
v1.1.2
Published
Universal IP intelligence tracker. Works on Node.js and Browsers.
Maintainers
Readme
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.
🔥 Features
- Detects user's timezone, IP, location, ISP, and more
- Works in Node.js
- Auto-detects environment
- Supports
require
📦 Installation (Node.js)
npm install geo-inspector
# or
yarn add geo-inspector📖 Usage
➤ Backend (Node.js / Express)
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 detailsgetBasicInfo()– returns IP, city, country, region, lat/longetTimezone()– returns timezone infogetConnectionDetails()– returns ISP and connection infogetCountryDetails()– returns flag, capital, borders, etc.
🧠 Example Response
{
"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
