find-my-ip
v1.1.1
Published
Retrieve local ip
Downloads
2
Readme
Description
Try to best guess local ip
Installation
npm install find-my-ip
Usage
JavaScript / Typescript
CJS
const {findMyIp} = require("find-my-ip");
ESM
import {findMyIp} from "find-my-ip";
Overview
const localIp = findMyIp(); // 192.168.1.123
Package
📁 package
│
└───📁 cjs
│ │
│ └─📝 index.cjs ⇽ CJS version - Browser (4.7kB unminified)
│
└───📁 esm
│
└─📝 index.mjs ⇽ ESM version - Browser (4.7kB unminified)