Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
micro-geoip-lite
Advanced tools
Readme
🌍 An extremely lite geoip decoder utilizing the micro-geoip-lite microservice to geo decode the IP info via an https request - the microservice utilizes MaxMind's IP info dataset.
yarn add micro-geoip-lite
, npm i micro-geoip-lite
params:
{ serviceUrl: string }
- optional, called instead of the default provider URL. You can also provide this via an env var REACT_APP_SERVICE_URL_GEOIP
or SERVICE_URL_GEOIP
returns:
{
ip: string, // if ip param was not provided, this defaults to request.ip
range: [ number, number ],
country: string,
region: string,
eu: string, // '0' or '1'
timezone: string,
city: string,
ll: [ number, number ],
metro: number,
area: number,
// error: 'Error text', // only exists if an error happened
}
example - fetch own ip info:
import geodecodeIp from 'micro-geoip-lite';
const result = await geodecodeIp();
{
ip: '207.97.227.239', // if ip param was not provided, this defaults to request.ip
range: [ 3479298048, 3479300095 ],
country: 'US',
region: 'TX',
eu: '0',
timezone: 'America/Chicago',
city: 'San Antonio',
ll: [ 29.4969, -98.4032 ],
metro: 641,
area: 1000,
// error: 'Error text', // only exists if an error happened
}
example - fetch specific ip info:
import geodecodeIp from 'micro-geoip-lite';
const result = await geodecodeIp('207.97.227.239');
FAQs
🌍 An extremely lite geoip decoder utilizing the micro-geoip-lite microservice to geo decode the IP info via an https request - the microservice utilizes MaxMind's IP info dataset.
The npm package micro-geoip-lite receives a total of 175 weekly downloads. As such, micro-geoip-lite popularity was classified as not popular.
We found that micro-geoip-lite 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.