ipify2
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

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

/ipify2/

    Package Sidebar

    Install

    npm i ipify2

    Weekly Downloads

    365

    Version

    1.1.3

    License

    ISC

    Unpacked Size

    1.53 kB

    Total Files

    4

    Last publish

    Collaborators

    • davidepedrazzi