1.0.4-alpha • Published 3 years ago
your-ip v1.0.4-alpha
Find out your IP with my app
This application will tell you your IP
Installation
npm i your-ip
Usage
Since the getIpInfo function is asynchronous, we get a promise when we call it. Therefore, we need to wait for the response using the await operator
import getIpInfo from 'your-ip'
const ip = await getIpInfo();
console.log(ip);
And then, to see your IP, open the console