ipily
v1.0.0
Published
Get your public IP address
Downloads
12
Maintainers
Readme
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