feat: initial release of myip v1.0.0
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
# MyIP
|
||||
|
||||
Zero-Latency Local (LAN) and Public (WAN) IP Address Resolver for the Gravitiny Ecosystem.
|
||||
|
||||
Author: **Maeve Gallagher** (`maevecodes`)
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
- **Instant Local Resolution:** Uses zero-packet UDP kernel routing lookup to determine local IPv4 instantly.
|
||||
- **Fast Public Resolution:** Multi-provider fallback (`ipify`, `icanhazip`, `ifconfig.me`) with aggressive 2.0s timeouts.
|
||||
- **Single-Line Output:** Formatted cleanly for direct terminal reading and shell piping.
|
||||
- **JSON Mode:** `-j` / `--json` flag for scripting, monitoring, and CI/CD pipelines.
|
||||
- **Verbose Network Diagnostic:** `-v` / `--verbose` mode shows host interfaces and ISP geolocation details.
|
||||
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
# Default single-line output
|
||||
myip
|
||||
|
||||
# Output only public IP
|
||||
myip --public
|
||||
|
||||
# Output only local IP
|
||||
myip --local
|
||||
|
||||
# JSON output
|
||||
myip --json
|
||||
|
||||
# Verbose geolocation and interface report
|
||||
myip --verbose
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## License
|
||||
|
||||
MIT License.
|
||||
Reference in New Issue
Block a user