
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
get-ip-location-lite
Advanced tools
Fetches IP address geolocation data using ip-api.com (no API key required)
Lightweight utility to fetch geolocation data (country, city, ISP, coordinates, etc.) from an IP address using the ipwho.is API.
No API key required. Works with HTTPS.
npm install get-ip-location-lite
yarn add get-ip-location-lite
const getIPLocation = require("get-ip-location-lite");
// Get the location of the current user's IP
getIPLocation()
.then(data => console.log("Your IP Location:", data))
.catch(err => console.error("Error:", err));
// OR get location info for a specific IP
getIPLocation("8.8.8.8")
.then(data => console.log("Google DNS IP Location:", data))
.catch(err => console.error("Error:", err));
No options object required.
Parameter | Type | Required | Description |
---|---|---|---|
ip | string | ❌ | IP address to lookup (leave blank for current IP) |
{
"ip": "8.8.8.8",
"success": true,
"country": "United States",
"city": "Mountain View",
"region": "California",
"latitude": 37.386,
"longitude": -122.0838,
"isp": "Google LLC"
}
Powered by ipwho.is
node test.js
MIT
FAQs
Fetches IP address geolocation data using ip-api.com (no API key required)
The npm package get-ip-location-lite receives a total of 3 weekly downloads. As such, get-ip-location-lite popularity was classified as not popular.
We found that get-ip-location-lite demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.