0.0.1 • Published 2 years ago
zxinc-ipv6 v0.0.1
zxinc-ipv6
A module for indexing ipv6 geolocation using the zxinc database.
Installation
# npm ..
npm i zxinc-ipv6
# yarn ..
yarn add zxinc-ipv6
Usage
const IPDBv6 = require('zxinc-ipv6');
//let db = new IPDBv6("/yourpath/ipv6wry.db");
let db = new IPDBv6();
console.log(db.getIPAddr("240e:473:fb40:2733::"));
/*
{
myip: '240e:473:fb40:2733::',
ip: { start: '240E:0470:1000:0000::', end: '240E:0473:FFFF:FFFF::' },
location: '中国浙江省 中国电信',
country: '中国浙江省',
local: '中国电信',
type: 'normal',
isNormalIPv6: true,
ipv4: undefined,
serveripv4: undefined
}
*/
Contributing
Please submit all issues and pull requests to the daidr/zxinc-ipv6 repository!
Support
If you have any problem or suggestion please open an issue here.
License
0.0.1
2 years ago