
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).
@yegor_heiz/ip-api
Advanced tools
API wrapper for ip-api. Fast, accurate, reliable. Free for non-commercial use, no API key required. Serving more than 1 billion requests per day, trusted by thousands of businesses
Fast, accurate, reliable. Free for non-commercial use, no API key required. Serving more than 1 billion requests per day, trusted by thousands of businesses
const IPApi = require('IPApi');
// Can be an IP address or a domain
const ip = '24.48.0.1';
const start = async () => {
// Fetch 'country' and 'countryCode' fields from 24.48.0.1 on russian language
return await IPApi.get(ip, ['country', 'countryCode'], 'ru');
// Or you can do sth like this
// return await IPApi.get('google.com');
};
start()
.then(result => {
// Log result
console.log(result.data);
})
.catch(e => {
console.log(e);
});
Wrapper for ip-api
Promise.<*>
Fetch data about ip address or domain
Kind: static method of IPApi
Param | Type | Default | Description |
---|---|---|---|
ip | string | Can be ip address or domain | |
fields | Array.<string> | If you don't require all the returned fields you can specify which data should be returned | |
lang | string | "en" | Localized city, regionName and country. Can be: en - English (default) de - Deutsch (German) es - Español (Spanish) pt-BR - Español - Argentina (Spanish) fr - Français (French) ja - 日本語 (Japanese) zh-CN - 中国 (Chinese) ru - Русский (Russian) |
Example
get('google.com');
get('google.com', ['country', 'countryCode']);
get('google.com', ['country', 'countryCode'], 'de');
FAQs
API wrapper for ip-api. Fast, accurate, reliable. Free for non-commercial use, no API key required. Serving more than 1 billion requests per day, trusted by thousands of businesses
The npm package @yegor_heiz/ip-api receives a total of 0 weekly downloads. As such, @yegor_heiz/ip-api popularity was classified as not popular.
We found that @yegor_heiz/ip-api demonstrated a not healthy version release cadence and project activity because the last version was released 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.