default-gateway reliably determines the default network gateway (IPv4 and IPv6) across various operating systems, including Windows, macOS, and Linux. It offers a simple, promise-based JavaScript API to retrieve the gateway IP and interface. This package is essential for network applications and tools needing to automatically configure routing or diagnose network connectivity issues, simplifying cross-platform compatibility for network configurations by abstracting OS-specific commands.