geoip-lookup:获取有关 IP 地址的位置信息

时间:2021-06-02 06:09:11
【文件属性】:
文件名称:geoip-lookup:获取有关 IP 地址的位置信息
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-02 06:09:11
JavaScript geoip-lookup 公开 2 个简单的 API, .lookup和.match 。 两者都是异步的,但.match将“阻止”回调,直到它检索到信息。 如果数据没有缓存在 LevelUp 本地数据库中,一旦数据被检索, .lookup将返回一个未定义的结果。 用法: var geoip = require('geoip-lookup'); // This will attempt to check the local database. if not found, it will return an empty result (non-blocking), but will cache the data later // when the lookup is complete. Useful when e.g. part of an express middleware wh
【文件预览】:
geoip-lookup-master
----index.js(1KB)
----package.json(395B)
----database.js(282B)
----test()
--------test.js(2KB)
----.gitignore(22B)
----README.md(4KB)
----.jshintrc(5KB)

网友评论