All Projects → yourtion → node-ip2region

yourtion / node-ip2region

Licence: MIT license
IP/IPv6 to region on Node.js (IP/IPv6 地址到区域运营商)

Programming Languages

typescript
32286 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to node-ip2region

Geolocate-IP-Browser-Extension
A browser extension, which shows you the origin of your IP address.
Stars: ✭ 21 (-77.89%)
Mutual labels:  ipv6, ip-address, ip, ipv6-address
ip2location-nginx
Nginx module that allows user to lookup for geolocation information using IP2Location database.
Stars: ✭ 33 (-65.26%)
Mutual labels:  ipv6, ip-address, ip-lookup, ip-location
IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (+62.11%)
Mutual labels:  ipv6, ip-address, ip-lookup, ip-location
ipapi-python
Python bindings for https://ipapi.co (IP Address Location) - Use with python / django / flask for IP address location lookup
Stars: ✭ 42 (-55.79%)
Mutual labels:  ipv6, ip-address, ip-lookup, ip-location
IPpy
🚀 Ping IP addresses and domains in parallel to find the accessible and inaccessible ones.
Stars: ✭ 54 (-43.16%)
Mutual labels:  ipv6, ip-address, ip
PHP-IPAddress
IP Address utility classes for PHP
Stars: ✭ 63 (-33.68%)
Mutual labels:  ipv6, ip-address, ipv6-address
Ip2region
Ip2region is a offline IP location library with accuracy rate of 99.9% and 0.0x millseconds searching performance. DB file is ONLY a few megabytes with all IP address stored. binding for Java,PHP,C,Python,Nodejs,Golang,C#,lua. Binary,B-tree,Memory searching algorithm
Stars: ✭ 9,836 (+10253.68%)
Mutual labels:  ip-address, ip-lookup, ip-location
IP2Location-C-Library
IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
Stars: ✭ 37 (-61.05%)
Mutual labels:  ipv6, ip-address, ip-lookup
private-ip
Check if IP address is private.
Stars: ✭ 26 (-72.63%)
Mutual labels:  ipv6, ip-address, ip
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Stars: ✭ 212 (+123.16%)
Mutual labels:  ipv6, ip-address, ip
ebook
Third edition of the Computer Networking: Principles, Protocols and Practice ebook
Stars: ✭ 64 (-32.63%)
Mutual labels:  ipv6, ip
fakeroute
IPv4 and IPv6 traceroute fake hop generator through IP spoofing
Stars: ✭ 75 (-21.05%)
Mutual labels:  ipv6, ipv6-address
ipv6gen
IPv6 prefix generator
Stars: ✭ 32 (-66.32%)
Mutual labels:  ipv6, ipv6-address
go-inet
A Go library for reading, formatting, sorting, lookup and converting IP-addresses and IP-blocks
Stars: ✭ 14 (-85.26%)
Mutual labels:  ipv6, ip-lookup
radvd
radvd | Official repository: https://github.com/radvd-project/radvd
Stars: ✭ 138 (+45.26%)
Mutual labels:  ipv6, ipv6-address
go-external-ip
a Golang library to get your external ip from multiple services
Stars: ✭ 55 (-42.11%)
Mutual labels:  ipv6, ip
Ipwhois
Retrieve and parse whois data for IPv4 and IPv6 addresses
Stars: ✭ 432 (+354.74%)
Mutual labels:  ipv6, ip-address
Cnp3
Computer Networking : Principles, Protocols and Practice (first and second edition, third edition is being written on https://github.com/cnp3/ebook)
Stars: ✭ 471 (+395.79%)
Mutual labels:  ipv6, ip
freebind
IPv4 and IPv6 address rate limiting evasion tool
Stars: ✭ 88 (-7.37%)
Mutual labels:  ipv6, ipv6-address
geoip
🌚 🌍 🌝 GeoIP 规则文件加强版,同时支持定制 V2Ray dat 格式路由规则文件 geoip.dat 和 MaxMind mmdb 格式文件 Country.mmdb。Enhanced edition of GeoIP files for V2Ray, Xray-core, Trojan-Go, Clash and Leaf, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.
Stars: ✭ 524 (+451.58%)
Mutual labels:  ipv6, ipv6-address

NPM version build status Test coverage David deps node version npm download npm license

node-ip2region

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,
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].