1.0.2 • Published 11 months ago
get-free-ip v1.0.2
My IP Package
A simple npm package to retrieve your IP address using the https://ip8.com/ API.
Installation
npm install get-free-ip
Usage
const getIP = require('get-free-ip');
getIP()
.then(ip => {
console.log('Retrieved IP address:', ip);
// Further usage of the IP address can be done here
})
.catch(error => {
console.error('Error retrieving IP:', error.message);
});
Running the above code will retrieve your IP address using the ip8.com API and provide it as a result. You can customize the code within the .then() block to handle the IP address as needed.
Contributing
https://ip8.com/
License
This project is released under the MIT License.
Free Software, Hell Yeah!
Author
Avinash Tare