Skip to content

corysus/ip2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ip2c Node Module

Node.js module for resolve IPs to country codes/names using ip2c.org service.

Install

npm i ip2c

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))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published