public-ip : Get your public IP address - very fast!. You can installing public-ip npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install public-ip $ sudo npm install -g public-ip
If want to update the public-ip package execute the command as below,
$ sudo npm update public-ip
Update package globally,
$ npm install -g public-ip
$ sudo git clone https://github.com/rektide/public-ip.git
$ sudo npm install -g ./public-ip
public-ip@2.3.5 /usr/lib/node_modules/public-ip
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall public-ip
| Package Name | public-ip |
| Version | 2.3.5 |
| Description | Get your public IP address - very fast! |
| Released Date | 2017-05-17T08:20:28.397Z |
| Published by | silverwind |
| How to Learn | https://www.npmjs.com/package/public-ip/tutorial |