mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
644 B
644 B
ipify 
Get your public IP address
Using the ipify API.
Usage
$ npm install --save ipify
const ipify = require('ipify');
ipify((err, ip) => {
console.log(ip);
//=> '82.142.31.236'
});
CLI
$ npm install --global ipify
$ ipify --help
Example
$ ipify
82.142.31.236
Related
See internal-ip to get your internal IP address.
License
MIT © Sindre Sorhus