@misterioso013/ipcli
v1.0.4
Published
IP api and cli
Readme
ipcli
Return the public IP address of the client.
CLI
Use the CLI to get the public IP address of the client in the terminal.
Install
npm install -g @misterioso013/ipcliUsage
npx ipcli
#=> Your local IP address is: 192.168.1.101API
Use the API to get the public IP address of the client in your code.
Install
npm i @misterioso013/ipcliUsage
import { ip } from "@misterioso013/ipcli";
console.log(ip()); // 192.168.1.101Development
Contribute to the development of the package.
Create a fork of the repository and clone it to your local machine.
git clone https://github.com/misterioso013/ipcli.git
cd ipcli
npm installTest
npm test