1.0.0 • Published 6 years ago

ipily v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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