@misterioso013/ipcli
v1.0.4
Published
IP api and cli
Downloads
9
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/ipcli
Usage
npx ipcli
#=> Your local IP address is: 192.168.1.101
API
Use the API to get the public IP address of the client in your code.
Install
npm i @misterioso013/ipcli
Usage
import { ip } from "@misterioso013/ipcli";
console.log(ip()); // 192.168.1.101
Development
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 install
Test
npm test