Skip to content

LarsBuur/canihazip

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%