The default-gateway package had frequent releases in 2017, especially in June and September. Release frequency slowed significantly after 2019, with occasional versions appearing in 2020, 2021 and 2023. There have been no releases so far in 2024 and 2025. The most recent release was in June 2023.
Default-gateway npm package downloads show strong performance. Downloads remained relatively stable between 48 million and 53 million from April 2024 to July 2025, with some fluctuations. August 2025 saw a drop to around 43 million, while September 2025 downloads are currently at 9.7 million but are incomplete.
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.