0.0.2 • Published 6 months ago

almighty-ip v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

almighty-ip

Build Setup

$ yarn install
$ yarn run test
$ yarn run test --watch

Usage

import ipRegionUtil from 'almighty-ip/lib/utils/ip-region.util';

const result = ipRegionUtil.query('223.114.61.11');

console.log(result);

// {
//   success: true,
//   data: {
//     bitmask: 20,
//     cityName: '石河子',
//     countryName: '中国',
//     ip: '223.114.61.11',
//     ispDomain: '移动',
//     ownerDomain: '',
//     regionName: '新疆',
//   }
// }
0.0.2

6 months ago

0.0.1

7 months ago