Now with Partition Management

    @ipdb/cac

    2019.9.10 • Public • Published

    ipdb-cac

    metowolf/ipdb patches (China Administrative divisions Code)

    Install

    $ npm install @ipdb/cac
    

    Patches

    value
    china_admin_code

    Usage

    const IPDB = require('ipdb');
    const ipdb_cac = require('@ipdb/cac');
    const database = require('@ipdb/database');
    const ipdb = new IPDB(database, {
      patches: [ipdb_cac]
    });
    
    ipdb.find('183.62.57.1');
    /*
    {
      code: 0,
      data: {
        country_name: '中国',
        region_name: '广东',
        city_name: '广州',
        bitmask: 18,
        china_admin_code: '440100'
      }
    }
    */

    Related

    • ipdb - IP lookup using XPXP.net database

    License

    MIT © metowolf

    Install

    npm i @ipdb/cac

    DownloadsWeekly Downloads

    1

    Version

    2019.9.10

    License

    MIT

    Unpacked Size

    14.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • metowolf