/canihazip

Primary LanguageJavaScriptMIT LicenseMIT

NPM version Build Status Dependency Status

Get public IP using canihazip.com.

Install

To use it as a node module:

npm install --save canihazip

Or to use it as CLI:

npm install --global canihazip

Usage

As a node module:

var canihazip = require('canihazip');

var ip = canihazip();

As CLI:

canihazip

This will return IP of the current machine, for example: 8.8.8.8.

License

MIT © Marko Grešak