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

1.0.0 • Public • Published

ipily Build Status

Get your public IP address

Using the gandi API.

Install

$ npm i --save ipily

Usage

const ipily = require('ipily');
 
ipily().then(ip => {
    console.log(ip);
    //=> '82.142.31.236'
});

API

ipily([endpoint])

Returns a Promise for the IP address.

endpoint

Type: string
Default: http://me.gandi.net

Custom API endpoint.

Credits

  • ipify - Get public ip default using https://api.ipify.org

License

MIT © Yuan Tao

Package Sidebar

Install

npm i ipily

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

5.04 kB

Total Files

9

Last publish

Collaborators

  • towyuan