Socket
Socket
Sign inDemoInstall

dy-node-ip2region

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dy-node-ip2region

official nodejs client of ip2region


Version published
Weekly downloads
526
decreased by-2.23%
Maintainers
1
Install size
11.3 MB
Created
Weekly downloads
 

Readme

Source

nodejs 客户端

度言官方维护的 ip2region, 每次数据更新后会更新到 npm

Install

node 版本 : >= 6.0.0

npm install dy-node-ip2region --save 

已测试通过的 node 版本列表

6.0.0
6.11.2
8.0.0
10.0.0
12.0.0

Example

const searcher = require('dy-node-ip2region').create();
searcher.btreeSearchSync('xxx.xxx.xxx.xxx')
// => { city: 2163, region: '中国|亚洲|广东省|深圳市|联通' }

Keywords

FAQs

Last updated on 14 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc