https://github.com/daidr/zxinc-ipv6
A module for indexing ipv6 geolocation using the zxinc database.
https://github.com/daidr/zxinc-ipv6
geolocation ipv6 zxinc
Last synced: about 1 year ago
JSON representation
A module for indexing ipv6 geolocation using the zxinc database.
- Host: GitHub
- URL: https://github.com/daidr/zxinc-ipv6
- Owner: daidr
- License: mit
- Created: 2021-10-29T15:05:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T16:05:53.000Z (about 3 years ago)
- Last Synced: 2025-04-10T19:29:49.846Z (about 1 year ago)
- Topics: geolocation, ipv6, zxinc
- Language: JavaScript
- Homepage: https://npmjs.org/package/zxinc-ipv6
- Size: 522 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [zxinc-ipv6](https://github.com/daidr/zxinc-ipv6)
> A module for indexing ipv6 geolocation using the zxinc database.
[](https://npmjs.org/package/zxinc-ipv6)
[](https://npmjs.org/package/zxinc-ipv6)
[](http://nodejs.org/download/)
## Installation
```bash
# npm ..
npm i zxinc-ipv6
# yarn ..
yarn add zxinc-ipv6
```
## Usage
```javascript
const IPDBv6 = require('zxinc-ipv6');
//let db = new IPDBv6(path.join(__dirname, "./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](http://github.com/daidr/zxinc-ipv6) repository!
## Support
If you have any problem or suggestion please open an issue [here](https://github.com/daidr/zxinc-ipv6/issues).
## License
[MIT](LICENSE)