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.
ip2region
Advanced tools
Readme
IP 地址到区域运营商 IP(支持 IPv6) to region on Node.js
$ npm install ip2region --save
// const IP2Region = require('ip2region').default;
import IP2Region from "ip2region";
const query = new IP2Region();
const res = query.search('120.24.78.68');
console.log(res);
> { country: '中国', province: '广东省', city: '深圳市', isp: '阿里云' }
const res2 = query.search('240e:47d:c20:1627:30a3:ba0d:a5e6:ec19');
console.log(res2);
> { country: "中国", province: "广东省", city: "", isp: "中国电信" }
ipv4db
: ipv4 数据库地址ipv6db
: ipv6 数据库地址disableIpv6
: 关闭 ipv6 查询功能(减少内存占用)import IP2Region from "ip2region";
const query = new IP2Region({
ipv4db: "/tmp/db4.db",
ipv6db: "/tmp/db6.db",
disableIpv6: true,
});
FAQs
ip/ipv6 to geo database, IP(支持IPv6)地址到区域运营商
The npm package ip2region receives a total of 622 weekly downloads. As such, ip2region popularity was classified as not popular.
We found that ip2region 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.