1.0.1-alpha • Published 2 years ago
quick-getip v1.0.1-alpha
quick-getip
Get your public IP address - very fast!
It uses the command line tool (curl) to request an IP address from the service ipify.
Install
npm install quick-getip
Usage
const ip = require('quick-getip');
ip().then(console.log);
//=> '109.5.21.123'
API
Returns a Promise<string>
with your public IP address.
1.0.1-alpha
2 years ago