Standalone Scripts
ipwhoami ships standalone scripts for environments where Node.js isn’t available. These are feature-equivalent to the npm version.
Bash Script (macOS / Linux)
Section titled “Bash Script (macOS / Linux)”Requires: curl, jq
Install
Section titled “Install”curl -fsSL https://raw.githubusercontent.com/vineethkrishnan/ipwhoami/main/install.sh | bashThe Bash script accepts the same flags as the npm version:
ipwhoami # Your public IPipwhoami 8.8.8.8 # Specific IPipwhoami -c 1.1.1.1 # Compare modeipwhoami -p ipapi 8.8.8.8 # Choose provideripwhoami -r 8.8.8.8 # Raw JSONLocation
Section titled “Location”After install, the script lives at /usr/local/bin/ipwhoami.
PowerShell Script (Windows / macOS / Linux)
Section titled “PowerShell Script (Windows / macOS / Linux)”Requires: PowerShell 5.1+ (built into Windows 10/11) or PowerShell 7+
Install
Section titled “Install”Invoke-WebRequest -Uri "https://raw.githubusercontent.com/vineethkrishnan/ipwhoami/main/scripts/ipwhoami.ps1" -OutFile "$HOME\ipwhoami.ps1"
# Add aliasAdd-Content $PROFILE 'Set-Alias ipwhoami "$HOME\ipwhoami.ps1"'PowerShell uses named parameters:
ipwhoami # Your public IPipwhoami 8.8.8.8 # Specific IPipwhoami -Compare 1.1.1.1 # Compare modeipwhoami -Provider ipapi 8.8.8.8 # Choose provideripwhoami -Raw 8.8.8.8 # Raw JSONFeature Comparison
Section titled “Feature Comparison”| Feature | npm | Bash | PowerShell |
|---|---|---|---|
| Lookup | Yes | Yes | Yes |
| Compare mode | Yes | Yes | Yes |
| Raw JSON | Yes | Yes | Yes |
| Provider selection | Yes | Yes | Yes |
| IPv6 support | Yes | Yes | Yes |
| Auto-detect IP | Yes | Yes | Yes |
| Dependencies | Node >= 18 | curl + jq | PowerShell 5.1+ |