【文件属性】:
文件名称:ipstack:用于轻松简化 IpStack GeoIP 服务访问的模块
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-29 12:53:11
JavaScript
IPIFY
用于轻松简化 IpStack GeoIP 服务访问的模块
安装
npm i @mindlessxd/ipstack
例子
IPv4
const ipstack = require ( '@mindlessxd/ipstack' ) ;
ipstack . setAccessKey ( "EXAMPLE_KEY" )
( async ( ) => {
try {
let geoData = await ipstack . getGeoData ( "EXAMPLE_ADDRESS" )
console . log ( geoData )
} catch ( error ) {
console . log ( error )
}
} ) ( ) ;
【文件预览】:
ipstack-main
----.gitignore(38B)
----package.json(614B)
----LICENSE(2KB)
----index.js(825B)
----README.md(429B)
----.gitattributes(66B)