MCPcopy Index your code
hub / github.com/justjavac/Google-IPs

github.com/justjavac/Google-IPs @main sqlite

repository ↗ · DeepWiki ↗
12 symbols 32 edges 6 files 0 documented · 0%
README

Google 全球 IP 地址库

=====>> 宽屏查看 <<=====

很多网站,尤其是国外网站,为了加快网站的速度,都是用了 Google 的 CDN。 但是在天朝,由于某些原因,导致全球最快的 CDN 变成了全球最慢的。

于是,我写了这个插件,将 Google 的 CDN 替换成国内的。

https://github.com/justjavac/ReplaceGoogleCDN

npm package

npm install google-ips
const googleIps = require("google-ips");

console.log(googleIps.ips.length);
console.log(googleIps.countries);
console.log(googleIps.getByCountry("Hong Kong"));
console.log(googleIps.has("93.123.23.1"));
console.log(googleIps.findCountry("118.174.25.251"));

You can also import the generated JSON data directly:

const data = require("google-ips/data");
Bulgaria
93.123.23.1 93.123.23.2 93.123.23.3 93.123.23.4 93.123.23.5 93.123.23.6
93.123.23.7 93.123.23.8 93.123.23.9 93.123.23.10 93.123.23.11 93.123.23.12
93.123.23.13 93.123.23.14 93.123.23.15 93.123.23.16 93.123.23.17 93.123.23.18
93.123.23.19 93.123.23.20 93.123.23.21 93.123.23.22 93.123.23.23 93.123.23.24
93.123.23.25 93.123.23.26 93.123.23.27 93.123.23.28 93.123.23.29 93.123.23.30
93.123.23.31 93.123.23.32 93.123.23.33 93.123.23.34 93.123.23.35 93.123.23.36
93.123.23.37 93.123.23.38 93.123.23.39 93.123.23.40 93.123.23.41 93.123.23.42
93.123.23.43 93.123.23.44 93.123.23.45 93.123.23.46 93.123.23.47 93.123.23.48
93.123.23.49 93.123.23.50 93.123.23.51 93.123.23.52 93.123.23.53 93.123.23.54
93.123.23.55 93.123.23.56 93.123.23.57 93.123.23.58 93.123.23.59
Top
Egypt
197.199.253.1 197.199.253.2 197.199.253.3 197.199.253.4 197.199.253.5 197.199.253.6
197.199.253.7 197.199.253.8 197.199.253.9 197.199.253.10 197.199.253.11 197.199.253.12
197.199.253.13 197.199.253.14 197.199.253.15 197.199.253.16 197.199.253.17 197.199.253.18
197.199.253.19 197.199.253.20 197.199.253.21 197.199.253.22 197.199.253.23 197.199.253.24
197.199.253.25 197.199.253.26 197.199.253.27 197.199.253.28 197.199.253.29 197.199.253.30
197.199.253.31 197.199.253.32 197.199.253.33 197.199.253.34 197.199.253.35 197.199.253.36
197.199.253.37 197.199.253.38 197.199.253.39 197.199.253.40 197.199.253.41 197.199.253.42
197.199.253.43 197.199.253.44 197.199.253.45 197.199.253.46 197.199.253.47 197.199.253.48
197.199.253.49 197.199.253.50 197.199.253.51 197.199.253.52 197.199.253.53 197.199.253.54
197.199.253.55 197.199.253.56 197.199.253.57 197.199.253.58 197.199.253.59
Top
Egypt
197.199.254.1 197.199.254.2 197.199.254.3 197.199.254.4 197.199.254.5 197.199.254.6
197.199.254.7 197.199.254.8 197.199.254.9 197.199.254.10 197.199.254.11 197.199.254.12
197.199.254.13 197.199.254.14 197.199.254.15 197.199.254.16 197.199.254.17 197.199.254.18
197.199.254.19 197.199.254.20 197.199.254.21 197.199.254.22 197.199.254.23 197.199.254.24
197.199.254.25 197.199.254.26 197.199.254.27 197.199.254.28 197.199.254.29 197.199.254.30
197.199.254.31 197.199.254.32 197.199.254.33 197.199.254.34 197.199.254.35 197.199.254.36
197.199.254.37 197.199.254.38 197.199.254.39 197.199.254.40 197.199.254.41 197.199.254.42
197.199.254.43 197.199.254.44

Extension points exported contracts — how you extend this code

GoogleIpsData (Interface)
(no doc)
data/google-ips.d.ts
GoogleIpsData (Interface)
(no doc)
src/index.ts
GoogleIpsData (Interface)
(no doc)
scripts/generate-data.ts

Core symbols most depended-on inside this repo

getByCountry
called by 5
src/index.ts
has
called by 3
src/index.ts
findCountry
called by 3
src/index.ts
random
called by 3
src/index.ts
freezeCountryMap
called by 1
src/index.ts
assertCountry
called by 1
src/index.ts
findTestFiles
called by 1
scripts/run-tests.ts
assertIpv4
called by 1
scripts/generate-data.ts

Shape

Function 9
Interface 3

Languages

TypeScript100%

Modules by API surface

src/index.ts7 symbols
scripts/generate-data.ts3 symbols
scripts/run-tests.ts1 symbols
data/google-ips.d.ts1 symbols

Dependencies from manifests, versioned

@types/node20.19.0 · 1×
typescript5.8.3 · 1×

For agents

$ claude mcp add Google-IPs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact