Skip to content
An unofficial client library for ipify: A Simple Public IP Address API.
Branch: master
Clone or download
Latest commit 6ad8a69 May 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit May 11, 2019
README.md Update README.md May 12, 2019
index.d.ts Add index.d.ts and Update README.md May 11, 2019
index.js Initial commit May 11, 2019
package-lock.json Update version May 12, 2019
package.json Update version May 12, 2019

README.md

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(error => console.log(error));
ipify.ipv6().then(ipv6 => console.log(ipv6)).catch(error => console.log(error));

or

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

License

ISC © Davide Pedrazzi

You can’t perform that action at this time.