Nervous Parrot Muttering

    ipip-datx

    0.2.2 • Public • Published

    开发文档

    安装说明

     npm -y install ipip-datx

    示例

    
    const datx = require('ipip-datx'); // 引入ipip-datx模块
    
    var city = new datx.City("/path/to/mydata4vipday4.datx");
     // findSync 此方法只接受IPv4类型的IP地址,请自行检查参数是否符合规定;
    console.log(city.findSync("123.121.17.72"));
    
    var district = new datx.District("/path/to/quxian.datx");
    // findSync 此方法只接受IPv4类型的IP地址,请自行检查参数是否符合规定;
    console.log(district.findSync("123.121.17.72")); 
    
    

    Install

    npm i ipip-datx

    DownloadsWeekly Downloads

    8

    Version

    0.2.2

    License

    Apache-2.0

    Unpacked Size

    17.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • ipip.net