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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.3325latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.3325
1.1.21
1.1.12
1.1.01
1.0.71
1.0.60
1.0.50
1.0.40
1.0.31
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i ipify2

Weekly Downloads

331

Version

1.1.3

License

ISC

Unpacked Size

1.53 kB

Total Files

4

Last publish

Collaborators

  • davidepedrazzi