Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 994 Bytes

README.md

File metadata and controls

49 lines (30 loc) · 994 Bytes

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