ipily

Get your public IP address

  • ipily

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
ipily
021.0.06 years ago6 years agoMinified + gzip package size for ipily in KB

Readme

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