Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tajpouria/ifconfig-me
Discovers your public IP address using pre-defined checkers (external services).
https://github.com/tajpouria/ifconfig-me
address dns external fast get ip ipv4 ipv6 machine opendns public
Last synced: 17 days ago
JSON representation
Discovers your public IP address using pre-defined checkers (external services).
- Host: GitHub
- URL: https://github.com/tajpouria/ifconfig-me
- Owner: tajpouria
- Created: 2022-07-17T15:23:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-17T20:23:36.000Z (over 2 years ago)
- Last Synced: 2024-12-15T09:30:08.751Z (19 days ago)
- Topics: address, dns, external, fast, get, ip, ipv4, ipv6, machine, opendns, public
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/ifconfig-me
- Size: 76.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ifconfig-me
Discovers your public IP address using pre-defined checkers (external services).
## Install
```sh
npm install ifconfig-me
```## Usage
```ts
import publicIP from "ifconfig-me";console.info(await publicIP());
//=> '46.5.21.123' | 'fe80::200:f8ff:fe21:67cf'
```