get-free-ip

1.0.2 • Public • Published

My IP Package

npm version License

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.
License Free Software, Hell Yeah!

Author

Avinash Tare

Package Sidebar

Install

npm i get-free-ip

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

2.19 kB

Total Files

3

Last publish

Collaborators

  • avinashtare