ip2c
v1.0.1
Published
Node.js module for resolve IPs to country codes/names using ip2c.org service.
Downloads
9
Readme
ip2c Node Module
Node.js module for resolve IPs to country codes/names using ip2c.org service.
Usage
const ip2c = require('./ip2c')
ip2c('ip_address').then(data => {
console.log(data)
/* return obj:
{
status: 200,
headers: {...},
data: { code: 'XX', iso: 'XXX', fullname: 'XXXXX' }
}
*/
}).catch(err => console.log('error', err))