Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

ipify2

An unofficial client library for ipify: A Simple Public IP Address API.

Install

$ npm i ipify2

Usage

const ipify = require('ipify2');

ipify.ipv4().then(ipv4 => console.log(ipv4)).catch(err => console.log(err));
ipify.ipv64().then(ipv64 => console.log(ipv64)).catch(err => console.log(err));

or

(async() => {
    // try {} catch (err) {}
    console.log(await ipify.ipv4());
    console.log(await ipify.ipv64());
})();

License

ISC © Davide Pedrazzi

About

An unofficial client library for ipify: A Simple Public IP Address API.

Resources

Releases

No releases published

Packages

No packages published