- This npm can show your public and private IP address.
- For installation use command: npm i get-ip-onixhometask-01.
- If you want to get npm in you code use: require('get-ip-onixhometask-01').
- For getting public IP use method public:
const getIp = require('get-ip-onixhometask-01');
getIp.public();
- // You get console.log with public IP
- For getting private IP use method private:
const getIp = require('get-ip-onixhometask-01');
getIp.private();
- // You get console.log with private IP