mirror of
https://github.com/lionsoul2014/ip2region.git
synced 2025-12-08 19:25:22 +00:00
add third party js binding impl
This commit is contained in:
parent
11f890f3a4
commit
ffb632c3d0
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
# 使用方式
|
# 使用方式
|
||||||
|
|
||||||
|
第三方支持地址:
|
||||||
|
1. [ts-ip2region2](https://github.com/Steven-Qiang/ts-ip2region2) - 基于 C 扩展,比纯 JS 有更高的运行效率。
|
||||||
|
|
||||||
### 安装 `ip2region.js`
|
### 安装 `ip2region.js`
|
||||||
```bash
|
```bash
|
||||||
npm install ip2region.js --save
|
npm install ip2region.js --save
|
||||||
@ -222,4 +225,4 @@ node tests/bench.app.js --db=../../data/ip2region_v6.xdb --src=../../data/ipv6_s
|
|||||||
```
|
```
|
||||||
|
|
||||||
可以通过分别设置 `cache-policy` 为 file/vectorIndex/content 来测试三种不同缓存实现的效果。
|
可以通过分别设置 `cache-policy` 为 file/vectorIndex/content 来测试三种不同缓存实现的效果。
|
||||||
@Note: 注意 bench 使用的 src 文件要是生成对应 xdb 文件相同的源文件。
|
@Note: 注意 bench 使用的 src 文件要是生成对应 xdb 文件相同的源文件。
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user