@ipdb/cac
v2020.12.1
Published
IPIP.net database patches (China Administrative divisions Code)
Downloads
58
Maintainers
Readme
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