1.0.0 • Published 6 years ago
ipily v1.0.0
ipily
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
1.0.0
6 years ago